You are on page 1of 1

Singleton can be explained in following scenario:

You have an application where an employee of the company is logging in to perform some Employee specific
operations. So, whenever he logs in, an employee related instance is created. There in, only 1 instance should
be valid at a single point in time. This is possible via singleton class.

You might also like