반응형


객체에 추가적인 요건을 동적으로 첨가할수 있다.

데코레이터는 서브클래스를 만드는것을 통해서 기능을 유연하게 확장할 수 있는 방법은 제공한다.



Decorator가 Component를 상속받음으로써 ConcreteDecorator들의 형식을 동일하게 맞출 수 있다.

그래서 Component에 여러개의 ConcreteDecorator들을 충첩시킬수도 있다.

728x90
반응형

'Development > Design Pattern' 카테고리의 다른 글

Strategy Pattern  (0) 2013.07.02
[데코레이터 패턴]  (0) 2013.06.26
Factory Method Pattern  (0) 2011.08.30
Template Method Pattern  (0) 2011.08.30

+ Recent posts