Is Singleton Pattern is bad as many told?
Before we discuss its pros and cons and whether it is bad as many people told, let recall what is Singleton Pattern.
What is the Singleton Pattern?
Intent of the Singleton pattern is to ensure a class has only one instance and provide a global point of access to it. But what problem will address in the case will have only one instance of object in…