Tag: Singleton

  • What is Singleton design pattern?

    Whenever we need to restrict instantiation of a class to one object, then we use Singleton design Pattern. The Singleton is intended to provide a way to ensure that a class provides one instance of itself, and to provide a global point of access. The Singleton class is responsible for instantiating itself and passing that…