Skip to main content

6 docs tagged with "creational"

View All Tags

AbstractFactory

Abstract Factory is a creational design pattern that lets you produce families of related objects without specifying their concrete classes.

Builder

The intent of the Builder design pattern is to separate the construction of a complex object from its representation.

Factory

A factory is a function or method that returns objects of a varying prototype or class from some method call, which is assumed to be new.

Lazy

Lazy initialization is the tactic of delaying the creation of an object, the calculation of a value, or some other expensive process until the first time it is needed.

Prototype

It is used when the type of objects to create is determined by a prototypical instance, which is cloned to produce new objects.

Singleton

Singleton pattern restricts the instantiation of a class to one object.