Creational Patterns Flashcards

1
Q

What is the most common creational pattern?

A

Factory pattern

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

When to use a factory pattern?

A

When the construction of one or many objects become too complex, or when different composition of objects can be created differently building some sort of simplification to the caller.

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

What is the abstract factory method?

A

Is a design pattern that allow creating different flavors of a specific object or interface

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

What’s creational pattern main purpose?

A

Creational design patterns abstracts the instantiation prices. Meaning that it can create one or many classes in a dynamic way. Usually creational patterns can completely change the system behavior by switching a simple constructor.

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