Decorator Flashcards

1
Q

Intent/Purpose

A

Attach additional responsibilities to objects dynamically and provides a flexible alternative to sub classing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

More flexible than static inheritance

A

Consequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Avoids feature-laden classes high in the hierarchies

A

Consequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Lots of little objects

A

Consequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Interface conformance

A

Implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Keeping component classes lightweight

A

Implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Changing the skin versus the guts of an object

A

Implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly