Skip to content
Ethan Shen edited this page Feb 11, 2015 · 3 revisions

Intent:

Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.

Structure:

Example:

Burger Queen

Reference:

http://en.wikipedia.org/wiki/Decorator_pattern

Clone this wiki locally