Context: |
"Dynamic and multiple classification": The implementation of some facet of behavior may be extended during its object's lifetime. |
||||||||
Challenges: |
|
||||||||
Skill: |
|||||||||
Participants: |
|
||||||||
Signature: |
Decorator is a concrete Subject and references (another) Subject, interfacing for it. Concrete Decorator derives from Decorator. |
||||||||
Notes: |
|
||||||||
Used patterns and idioms: |
Recursive Object-Structure idiom. |
||||||||
Used by: |
(Typically:) parsing, coding and decoding algorithms. |
||||||||
Source: |
GOF. |
||||||||
Scope: |
General. (Preferably, languages where late binding is obligatory.) |