Decorator Flashcards
1
Q
Intent/Purpose
A
Attach additional responsibilities to objects dynamically and provides a flexible alternative to sub classing
2
Q
More flexible than static inheritance
A
Consequence
3
Q
Avoids feature-laden classes high in the hierarchies
A
Consequence
4
Q
Lots of little objects
A
Consequence
5
Q
Interface conformance
A
Implementation
6
Q
Keeping component classes lightweight
A
Implementation
7
Q
Changing the skin versus the guts of an object
A
Implementation