반응형
Using a super class with multiple sub classes, and depending on input returns one sub class. Factory pattern allows no actual instantiation on client code.
source : https://www.journaldev.com/1392/factory-design-pattern-in-java
반응형
'IT > 디자인 패턴' 카테고리의 다른 글
Strategy Pattern (0) | 2020.02.28 |
---|---|
Builder Design Pattern (0) | 2020.02.25 |
Abstract Factory Design Pattern (0) | 2020.02.24 |
Singleton Pattern (0) | 2020.02.19 |