Creational patterns provides various object creation mechanisms, which increases flexibility and reusability of existing code. The creational design patterns are further divided into two main scopes.

Scopes of creational patterns

Class creational patterns

Class creational patterns use inheritance to vary the class that’s instantiated

Object creational patterns

Object creational pattern delegates instantiation to another object.

  • Factory Method Pattern Provides an interface for creating objects but allows subclasses to decide which class to instantiate.
  • Builder Pattern Construct complex objects step by step, allows the production of objects in different representations.
  • Singleton Pattern Ensures a singleton class only has one instance, and provide global point of access to it.
  • Prototype Pattern Copy existing objects without making dependency on their classes.

Back to super node: Software Design Patterns

Design_PatternCreational_Design_PatternsSOFT2201Builder_PatternFactory_Method_PatternSingleton_pattern