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.
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.