Chapter 13 Flashcards

1
Q

Purpose of Design Patterns

A

Make it easier to reuse successful Object-Oriented Designs

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

Purpose of Abstract Factory

A

Create families of related or dependent objects without specifying their concrete class

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

Purpose of Factory Method

A

Define an interface for creating an object, but let subclasses decide which class to instantiate.

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

Purpose of Builder pattern

A

Separate the construction of a complex object from its representation.

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

Purpose of Prototype Pattern

A

Create a prototypical instance and create new objects by copying this prototype

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

Purpose of Singleton Pattern

A

Ensure a class only has one instance and provide a global point of access to it

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

Purpose of Adapter Pattern

A

Convert the interface of a class into another interface clients expect.

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

Purpose of Composite Pattern

A

Compose objects into tree structures to represent part-whole hierarchies.

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

Purpose of Proxy Pattern

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