Structural Pattern Designs Flashcards

1
Q

Adapter

A

Convert the interface of a class into another interface clients expect. / Adapter lets classes work together, that could not otherwise because of incompatible interfaces.

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

Bridge

A

Compose objects into tree structures to represent part-whole hierarchies. / Composite lets clients treat individual objects and compositions of objects uniformly.

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

Composite

A

Compose objects into tree structures to represent part-whole hierarchies. / Composite lets clients treat individual objects and compositions of objects uniformly.

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

Decorator

A

add additional responsibilities dynamically to an object.

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

Flyweight

A

use sharing to support a large number of objects that have part of their internal state in common where the other part of state can vary.

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

Memento

A

capture the internal state of an object without violating encapsulation and thus providing a mean for restoring the object into initial state when needed.

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

Proxy

A

provide a “Placeholder” for an object to control references to it.

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