Decorator Design Pattern

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.

Publication: C++ Builder Developer's Journal
Issue: Volume 8, Number 12, December 2004

Comments

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.