Creational Design Patterns Flashcards

1
Q

Singleton

A

Ensure that only one instance of a class is created and Provide a global access point to the object.

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

Factory

A

Creates objects without exposing the instantiation logic to the client and Refers to the newly created object through a common interface.

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

Factory Method

A

Defines an interface for creating objects, but let subclasses to decide which class to instantiate and Refers to the newly created object through a common interface.

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

Abstract Factory

A

Offers the interface for creating a family of related objects, without explicitly specifying their classes.

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

Builder

A

Defines an instance for creating an object but letting subclasses decide which class to instantiate and Allows a finer control over the construction process.

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

Prototype

A

Specify the kinds of objects to create using 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
7
Q

Object Pool

A

Reuses and shares objects that are expensive to create

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