Nandeesh Mp Developer & Open Source Enthusiast

Singleton Pattern

Singleton pattern is used whenever there is a need to instantiate only one object of a class across the system. Its like providing a global point of access to the object.

Examples where singleton pattern can be applied :

Singleton patter is also considered as anti-pattern because of the following in reasons :