Singleton design pattern
Singleton design pattern is one of the most commonly used design patterns. We use singleton design pattern when we need only one instance of a class. For example : Logger : Suppose you are implementing a logging service in your application. All the ...
Sep 8, 20253 min read4