1
edit
Changes
m
Attach additional responsibility to an object dynamically. Decoratores provide a flexible alternative to subclassing for extending functionality.
no edit summary
===Decorator Design Pattern===
Attach additional responsibility to an object dynamically. Decoratores provide a flexible alternative to subclassing for extending functionality.
[[Image:DecoratorUML.png|frame|UML Class diagram of the decorator pattern]]
==Sample Code==