Singleton Design Pattern

Singleton Design Pattern belong to creational design pattern family and singleton design pattern is used when there is a need of only one instance of class in one container. Like one organization can have only one CEO in company. The singleton pattern is one of the simplest design patterns. It contains only one class which is responsible to instantiate itself and it make sure it creates … Continue reading Singleton Design Pattern