notes / design-patterns / creational / README.md · 2026-04 · 1 min
# Creational Patterns
Creational patterns deal with how objects are created, so the rest of the code doesn't depend on the exact creation details.
## Patterns
- Singleton: one shared instance.
- Factory Method: subclasses choose which object to create.
- Abstract Factory: create families of related objects.
- Builder: create complex objects step by step.
- Prototype: create objects by cloning existing ones.
## Easy way to remember
- Need only one object? → Singleton
- Need to choose one concrete type? → Factory Method
- Need a whole matching family of objects? → Abstract Factory
- Need to build something step by step? → Builder
- Need to copy an existing object? → Prototype