The Singleton pattern is likely the most famous—and most abused—creational pattern. It restricts a class to a single instance and exposes a global way to access it. Used carefully, …