Structural Flashcards

1
Q

Adapter

A

Converting an object into a type expected by the client. Adapter wraps the object and implements the type. Thus we use the object to provide functionality.

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

Bridge

A

Decouples major features from an object such that they can be added trough composition instead of inheritance. Wraps the abstract feature such that a varient of the feature can be specified.

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

Composite

A

Lets you create unit representations and return aggregated results.

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

Decorator

A

A decorator is extended to apply specialized functionality to an object. It does so by wrapping the object and implements it’s interface. This allows us to chain functionality by composition instead of inheritance.

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

Facade

A

Your avarage Helper class. Provides a simplified interface to one or more subsystems.

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

Flyweight

A

A way to separate shared state from objects. To free up RAM.

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

Proxy

A

Basically a decorator which controls access to an object. The only differense lies in it’s purpose.

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