Creational Patterns
Object creation mechanisms that increase flexibility and reuse of existing code.
Table of Contents
- 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 you produce families of related objects without specifying their concrete classes.
- Builder: Lets you construct complex objects step by step.
- Prototype: Lets you copy existing objects without making your code dependent on their classes.
- Singleton: Lets you ensure that a class has only one instance, while providing a global access point to this instance.