Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 436 Bytes

File metadata and controls

17 lines (11 loc) · 436 Bytes

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