Decorator Pattern
Context
- Component objects can be decorated (visually or behaviorally
enhanced)
- The decorated object can be used in the same way as the
undecorated object
- The component class does not want to take on the responsibility
of the decoration
- There may be an open-ended set of possible decorations