Skip to content

Division

Creational patterns are a subgroup of patterns that describe how to create objects. Objects can be created by the usage of constructors, but using only this method may lead to unreadable code, especially in the case of complex objects.

In this group we have:

  • Singleton - describes how to create only a single instance of the object in the application.
  • Builder - utilized to create complex objects.
  • Factory Method - simplifies the creation of complex objects of the same group of objects.
  • Abstract Factory - allows you to create objects of a specific family (one among many) related objects.
  • Prototype - describes how to create an object using a copy of an existing base object.