Decorator

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

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