Input and Output Classes
- slide 39 : 40
The Decorator Pattern at Run Time
Decorators
can be added at run-time
A client accesses the outer
Component
(typically a
ConcreteDecorator
).
A decorator does part of the work, and
delegates
the rest to the next
Component
in the chain
Use of
Decorator
can be seen as a dynamic alternative to static subclassing