Creational Design Pattern Series: Singleton Pattern

Every now and then, it’s important to have only one instance for a class. Usually, singletons are used for centralized management of resources and they provide a global point of access to themselves.

Some of the common examples where singleton pattern is used include logger classes, configuration classes, etc.