Singleton pattern

The Singleton design pattern proposes   At any time there can only be one instance of a class  We should allow global point of access to that single instance. The class’s default constructor is made private, which prevents the direct instantiation of the object by others (Other Classes). A static modifier is applied to the ...