Creational Patterns Flashcards

(6 cards)

1
Q

Factory Method

A

is a creational design pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.

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

Factory Method applies to

A

is a creational design pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.

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

Abstract Factory

A

is a creational design pattern that lets you produce families of related objects without specifying their concrete classes.

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

Builder

A

is a creational design pattern that lets you construct complex objects step by step. The pattern allows you to produce different types and representations of an object using the same construction code.

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

Prototype

A

is a creational design pattern that lets you copy existing objects without making your code dependent on their classes.

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

Singleton

A

is a creational design pattern that lets you ensure that a class has only one instance, while providing a global access point to this instance.

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