Decorator

From CDOT Wiki
Revision as of 17:23, 3 February 2007 by Dtolj (talk | contribs)
Jump to: navigation, search

Decorator Design Pattern

Attach additional responsibility to an object dynamically. Decoratores provide a flexible alternative to subclassing for extending functionality.

UML Class diagram of the decorator pattern

Sample Code