Singleton Design Pattern

Introduction Singleton is a popular topic that you will encounter at least once during your job search. This short tutorial describes three approaches to implement a singleton class. Singleton Pattern A singleton is simply a class that is instantiated exactly once. We want a single instance of a particular object in the memory. The common […]