aminehsan / DesignPattern-Singleton

Analysis and implementation of the Singleton Design Pattern

Repository from Github https://github.comaminehsan/DesignPattern-SingletonRepository from Github https://github.comaminehsan/DesignPattern-Singleton

Design Pattern Singleton

Analysis and implementation of the Singleton Design Pattern

Singleton

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.

How to run Python

python main.py

Output :

Singleton works, both variables contain the same instance

Structure :

├── main.py

About

Analysis and implementation of the Singleton Design Pattern


Languages

Language:Python 100.0%