Kamaropoulos / COVID19Py

A tiny Python package for easy access to up-to-date Coronavirus (COVID-19, SARS-CoV-2) cases data.
https://pypi.org/project/COVID19Py/
GNU General Public License v3.0
84 stars 57 forks source link

Singleton Pattern Final #129

Closed grewal-jaskarn-216381071 closed 3 years ago

grewal-jaskarn-216381071 commented 3 years ago

I have implemented the Singleton Pattern into COVID19.py, this implementation creates a single instance of the class, another way of saying this is that an object that is the only object of its type. The pattern restricts the instantiation of a class and ensures that only one instance of the class exists. The pattern allows for a global access point to get the instance of the class.