Creational Patterns Flashcards
1
Q
What is the most common creational pattern?
A
Factory pattern
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.
3
Q
What is the abstract factory method?
A
Is a design pattern that allow creating different flavors of a specific object or interface
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.