Decorator Design Pattern
Publication: C++ Builder Developer's Journal Issue: Volume 8, Number 12, December 2004
In this 3 page article I consolidate the information provided in my 2 introductory articles on design patterns and present the reader with a discussion on the decorator design pattern.
The Decorator Pattern provides a mechanism to “attach” additional responsibilities to an object without the need for subclassing. This is very useful for situations in which an application may create only one object from a class, or the additional functionality needs to be added to different classes.