Learning path 2 of 6 · Intermediate
Creational patterns
Deal with the creation of objects: explicit (constructor) vs implicit (DI, reflection), wholesale vs piecewise.
0 of 5 lessons complete
- 1Factory Method
Defines an interface for creating an object but lets subclasses decide which class to instantiate.
- 2Abstract Factory
Produces families of related objects without specifying their concrete classes.
- 3Builder
Constructs complex objects step by step, letting the same process produce different representations.
- 4Prototype
Copies existing objects without making code depend on their classes.
- 5Singleton
Ensures a class has only one instance and provides a global access point to it.