Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- prototype pattern
- ubuntu
- kebab case
- maven
- camel case error
- Factory Method Pattern
- MVVM
- executable jar
- $event.target.value
- builder pattern
- java
- v-show vs v-if
- click.native
- mount point
- design pattern
- data
- IPv6
- vuejs
- zen of python
- Linux
- Spring Boot
- Singleton pattern
- v-model vs v-bind
- Python
Archives
- Today
- Total
목록prototype pattern (1)
Eddie's Blog
[design pattern] Prototype Pattern
유형: 생성자 패턴 다양한 객체를 생성하기 위해 Prototypical(prototype을 구현한) 인스턴스를 사용하고, 이 Prototype의 복제를 통해 새로운 객체를 생성한다. // prototype public abstract class PlayableContent implements Cloneable { public abstract void play(); @Override protected Object clone() { Object clone = null; try { clone = super.clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); } return clone; } } // concrete prototypes p..
programmings
2019. 3. 28. 21:02