Structural Flashcards

1
Q

Adaptor

A

Convert the interface of a class into another interface the client expects. Let classes work together that couldn’t otherwise because of incompatible interfaces.

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

Facade

A

Provide a unified interface to a set of interfaces in a subsystem. Defines a higher-level interface that makes the subsystem easier to use.

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

Decorator

A

Attach additional responsibilities to an object dynamically. Provide a flexible alternative for subclassing for extending functionality.

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

Bridge

A

Decouple an abstraction from its implementation so that the two can vary independently.

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

Flyweight

A

Use sharing to support large numbers of fine-grained objects efficiently.

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

Composite

A

Arrange objects into tree structures to represent part-whole hierarchies. Let clients treat individual objects and collections of objects uniformly.

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

Proxy

A

Provide a surrogate or placeholder for another object to control access to it.

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