Design Patterns

Oone of the most simple design patterns which every project will use is the Singleton design patterns.
It bsically tells us that we can instantiate only one instance of a class.

When we first create the object , the variable points to the first instance created.So whatever modifications we do to any variable inside the class through any instance, it affects the variable of the single instance created and is visible if we access that variable through any variable of that class type defined.

The first method to create Singelton is to make constructore private: