Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 284 Bytes

File metadata and controls

12 lines (7 loc) · 284 Bytes

Singleton Pattern Pattern

Definition

The Singleton Pattern ensure a class only has one instance and provide a global point of access to it.

Compile

To compile use command: g++ -std=c++17 main.cpp -o main

Class diagram for this pattern

Alt text