다음 중 디자인 패턴(Design pattern)유형이 올바르게 분류되… | [경찰간부후보생 소프트웨어공학] 24년 1회차 기출문제 상세 페이지
1[경찰간부후보생 소프트웨어공학] 24년 1회차
다음 중 디자인 패턴(Design pattern)유형이 올바르게 분류되지 않은 것은?
1
Command – Observer – Visitor – Iterator – Template method
2
Bridge – Proxy – Facade – Adapter – Decorator
3
Builder – Factory method – Prototype – Singleton – Abstract factory
4
Flyweight – Composite – Memento – State – Mediator
해설
올바르게 분류되지 않은 묶음은 Flyweight – Composite – Memento – State – Mediator이다.
이 묶음에서 Flyweight와 Composite는 구조 패턴이고, Memento·State·Mediator는 행위 패턴이어서 유형이 섞여 있다.
- Command, Observer, Visitor, Iterator, Template method는 모두 행위 패턴이다.
- Bridge, Proxy, Facade, Adapter, Decorator는 모두 구조 패턴이다.
- Builder, Factory method, Prototype, Singleton, Abstract factory는 모두 생성 패턴이다.
오류나 개정된 내용이 보이면 알려주세요