Decorator

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

Decorator Design Pattern

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