💡 디자인 패턴이란, 프로그램을 설계할 때 발생했던 문제점들을 객체 간의 상호 관계 등을 이용하여 해결할 수 있도록 하나의 ‘규약’ 형태로 만들어 놓은 것을 의미한다.
객체지향 설계에서 지켜줘야 할 5개의 원칙
생성 (Creational) 패턴 | 구조 (Structural) 패턴 | 행위 (Behavioral) 패턴 |
---|---|---|
Singleton | Adapter | Chain of Responsibility |
Builder | Bridge | Command |
Factory Method | Composite | Interpreter |
Abstract Factory | Decorator | Iterator |
Prototype | Facade | Mediator |
Flyweight | Memento | |
Proxy | Observer | |
State | ||
Strategy | ||
Template Method | ||
Visitor |