Singleton Design Pattern

In software engineering, a singleton the design pattern which allowed only object of a class. That means singleton pattern restricts to create multi instance of a class. This is useful, when we need to create only one instance or object of a class. To do this we must need to ensure a mechanism where we can access that class without creating object for them.

This is very basic concept of  singleton design pattern.