-->

23/02/2012

Structural Pattern : Decorator Pattern Demo


Decorator Pattern can be defined best by below Image.
Before going into details lets go through the text book definitions and UML diagrams first.

Definition:
Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to sub-classing for extending functionality.