카테고리 없음

[정처기] GoF(Gang of Four)패턴 정리(생성, 구조, 행위)

Let it out 2025. 5. 11. 21:24
반응형

- GoF(Gang of Four) 패턴

*GoF(Gang of Four) 패턴: 에리히 감마(Erich Gamma), 리처드 헬름(Richard Helm), 랄프 존슨(Ralph Johnson), 존 블리시데스(John Vlissides)가 같이 고안한 디자인 패턴

그림 출처 : https://4z7l.github.io/2020/12/25/design_pattern_GoF.html

 

*생성패턴 : 객체의 생성과 관련된 패턴

*구조패턴 : 클래스나 객체들을 조합하여 더 큰 구조로 만들 수 있게 해주는 패턴

*행위패턴 : 클래스나 객체들이 서로 상호작용하는 방법이나 책임 분배 방법을 정의하는 패턴

 

23가지 디자인 패턴을 3가지 분류로 정리한 디자인 패턴

*생성 패턴: Abstract Factory, Builder, Factory Method, Prototype, Singleton

*구조 패턴: Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy

*행위 패턴: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategty, Template Method, Visitor

반응형