Creational Design Patterns (original) (raw)

Last Updated : 6 Apr, 2026

Creational Design Patternsfocus on the process of object creation or problems related to object creation. They help in making a system independent of how its objects are created, composed, and represented. Creational patterns give a lot of flexibility in what gets created, who creates it, and how it gets created.

There are two main themes in these patterns:

**Example: Imagine a toy factory

Types

There are mainly 5 types of creational design patterns:

type-creation-design-pattern

Types of Creational Design Pattern

Sometimes creational patterns are competitors. For Example: there are cases when either Prototype or Abstract Factory could be used profitably. At other times they are complimentary: Builder can use one of the other patterns to implement which components get built. The Prototype can use Singleton in its implementation.

1. Singleton Method Design Pattern

The Singleton method or Singleton Design pattern is one of the simplest design patterns. It ensures a class only has one instance, and provides a global point of access to it. Below is when to use Singleton Method:

2. Abstract Factory Method Design Pattern

Abstract Factory pattern is almost similar to Factory Pattern and is considered as another layer of abstraction over factory pattern. Abstract Factory patterns work around a super-factory which creates other factories. Below is when to use Abstract Factory Method Design Pattern:

3. Factory Method Design Pattern

Factory Method Design pattern is typically helpful when it’s necessary to separate the construction of an object from its implementation. With the use of this design pattern, objects can be produced without having to define the exact class of object to be created. Below is when to use Factory Method Design Pattern:

4. Prototype Method Design Pattern

Prototype allows us to hide the complexity of making new instances from the client. The concept is to copy an existing object rather than creating a new instance from scratch, something that may include costly operations. Below is when to use Prototype Method:

5. Builder Method Design Pattern

Builder Design Pattern is used to Separate the construction of a complex object from its representation so that the same construction process can create different representations. It helps in constructing a complex object step by step and the final step will return the object. Use It when:

Benefits

Creational design patterns offer several key benefits:

Use Cases

Creational design patterns should be used when the process of object creation becomes complex or needs better flexibility and control.