Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Singleton Pattern

Creational Type

Intent:

Ensure a class only has one instance, and provide a global point of access to it.

Definition

Singleton is a creational design pattern that lets you ensure that a class has only one instance, while providing a global access point to this instance.

Visual Diagram

Visual Diagram Singleton Pattern

image by refactoring guru