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 |
Tags
- Python
- builder pattern
- v-model vs v-bind
- click.native
- design pattern
- mount point
- Linux
- vuejs
- prototype pattern
- IPv6
- v-show vs v-if
- data
- Spring Boot
- Factory Method Pattern
- MVVM
- java
- camel case error
- maven
- executable jar
- kebab case
- ubuntu
- $event.target.value
- zen of python
- Singleton pattern
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