Open main menu

CDOT Wiki β

Decorator

Revision as of 17:22, 3 February 2007 by Dtolj (talk | contribs)

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