Description
Creational design patterns are concerned with the object creation mechanisms, which increase flexibility and reuse of existing code.
Here is a list of creational design pattern types.
Design Pattern | Description |
Factory Method | Provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created. |
Abstract Factory | Lets us produce families of related objects without specifying their concrete classes. |
Singleton | Lets us ensure that a class has only one instance while providing a global access point to this instance. |
Prototype | Lets us copy existing objects without making your code dependent on their classes. |
Builder | Lets us construct complex objects step by step. The pattern allows you to produce different types and representations of an object using the same construction code. |
Overall
We now know creational design patterns and their types.