Creational Patterns

Patterns that decouple code from the concrete classes it instantiates.

Creational patterns control how objects are created, so that client code depends on abstractions rather than on new ConcreteClass(). The GoF catalogue contains five: Singleton, Factory Method, Abstract Factory, Builder and Prototype. The creational patterns comparison explains how they differ from one another and from the common “simple factory” idiom.

Articles