1 What is Singleton pattern?
The singleton pattern is the simplest design pattern that restricts the one instantiation of a class that involves only one object that is responsible to make sure there is no more than one instance. Class instantiates itself and at the same time. It provides a global point of access to that instance and ensures the same instance can be used from everywhere