An open API service indexing awesome lists of open source software.

https://github.com/aminehsan/designpattern-singleton

Analysis and implementation of the Singleton Design Pattern
https://github.com/aminehsan/designpattern-singleton

computer-software-engineer design-pattern singleton singleton-design-pattern

Last synced: 6 months ago
JSON representation

Analysis and implementation of the Singleton Design Pattern

Awesome Lists containing this project

README

          

# Design Pattern Singleton
> Analysis and implementation of the Singleton Design Pattern

![Singleton](https://github.com/AminEhsan/DesignPattern-Singleton/blob/main/1.png)

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
```bash
python main.py
```

#### Output :
> Singleton works, both variables contain the same instance

#### Structure :
```
├── main.py
```