First page Back Continue Last page Graphics
Decoration Features
Decorators have the same supertype as the objects they decorate
You can use one or more decorators to wrap an object
- Thus, you can pass decorated object in place of original (wrapped) object
The decorator adds its own behavior either before or after delegating to the object it decorates to
Objects can be decorated at any time, including run-time, with as many decorators as possible