Singleton Design Pattern Interview Questions
Singleton Design Pattern Interview Questions
What is Singleton Pattern ?
Singleton pattern is used when we want to create only one instance of a class.
A very simple example is say Logger, suppose we need to implement the logger and log it to some file according to date time. In this case, we cannot have more than one instances of Logger in the application otherwise the file in which we need to log will be created with every instance.
We…
View On WordPress













