Singleton pattern

Viewed 10300

When should we use the Singleton pattern and why?

12 Answers

When you just need one instance from a class. One of the best example is the logger. You just need an instance of it.

Related