블로그
- [디자인패턴-1 Creational] Prototype 내용을 정리한 것입니다. avoid subclasses of an object creator in the client application, like the abstract factory 실제로 member setting 등을 하면 new 를 하는 것이랑 많은 /** * Prototype Class */ public class Cookie implements Cloneable
- [디자인패턴-1 Creational]Lazy initialization .*; public class Fruit { private static final Map types = new HashMap(); private final String type; / / using a private constructor to force use of the factory method. private Fruit(String type) { this.t
← 이전
2 페이지