Factories, the singleton pattern and the builder pattern are some of the most common creational design patterns.
Factories
The factory pattern provides an abstract class for defining objects in superclasses, while allowing subclasses to choose which class to instantiate. The subclasses are in charge of creating class instances.
Get hands-on with 1400+ tech skills courses.