Used the Singleton pattern in order to reduce the number of global variables to one single instance. This helps to have better control of each object to have one state at a time. Singleton creates a single object that is used to shared throughout the whole code.
Used the Singleton pattern in order to reduce the number of global variables to one single instance. This helps to have better control of each object to have one state at a time. Singleton creates a single object that is used to shared throughout the whole code.