Creational Patterns
- Encapsulate instantiation process.
- Makes system independent of how the objects are created.
- You get greater flexibility in what gets created, who creates it, how it gets created and when.
Following are different creational design patterns
Creational Patterns | |
Abstract Factory | Creates an instance of several families of classes |
Builder | Separates object construction from its representation |
Factory Method | Creates an instance of several derived classes |
Prototype | A fully initialised instance to be copied or cloned |
Singleton | A class of which only a single instance can exist |