Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

examp7.cpp

This example is to show use of the Decorator pattern.

In our scenario we have a BannerComponent. This is the Component that the Decorators need to add responsibility to.We create two (2) decorators PreBanner and PostBanner which are the relevance of where they add responsibilities.

Finally, we chain the decorators and the component being decorated.


This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium