Structural Patterns Flashcards

(13 cards)

1
Q

Adapter

A

is a structural design pattern that allows objects with incompatible interfaces to collaborate.

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

Adapter applies to

A

Single Responsibility Principle and Open/Closed Principle

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

Bridge

A

is a structural design pattern that lets you split a large class or a set of closely related classes into two separate hierarchies—abstraction and implementation—which can be developed independently of each other.

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

Bridge applies to

A

Single Responsibility Principle and Open/Closed Principle

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

Composite

A

is a structural design pattern that lets you compose objects into tree structures and then work with these structures as if they were individual objects.

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

Composite applies to

A

Open/Closed Principle

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

Decorator

A

is a structural design pattern that lets you attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors.

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

Decorator applies to

A

Single Responsibility Principle and Open/Closed Principle

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

Facade

A

is a structural design pattern that provides a simplified interface to a library, a framework, or any other complex set of classes.

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

Facade applies to

A

Single Responsibility Principle

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

Flyweight

A

is a structural design pattern that lets you fit more objects into the available amount of RAM by sharing common parts of state between multiple objects instead of keeping all of the data in each object.

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

Proxy

A

This pattern is a structural design pattern, that lets you provide a substitute or placeholder for another object, it controls access to the original object allowing you to perform something before or after the request reaches the original object.

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

Proxy applies to

A

Open/Closed Principle

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