When to use:
- when a class in your program should have just a single instance available to all clients
- when you need stricter control over global variables
How singleton pattern breaks Single Responsibility Principle ?
When to use:
How singleton pattern breaks Single Responsibility Principle ?