SE450: Decorator Pattern [48/72] Previous pageContentsNext page

Context

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

Previous pageContentsNext page