Difference between revisions of "Decorator"
Line 1: | Line 1: | ||
===Decorator Design Pattern=== | ===Decorator Design Pattern=== | ||
+ | |||
+ | [[Image:DecoratorUML.png|frame|UML Class diagram of the decorator pattern]] | ||
+ | |||
+ | Attach additional responsibility to an object dynamically. Decoratores provide a flexible alternative to subclassing for extending functionality. | ||
+ | |||
+ | ==Sample Code== |