The singleton design pattern belongs to the family of Creational design patterns where a single class is responsible to create an object while making sure that only a single object gets created. This class provides a method to access its only object which can be accessed directly without the need to instantiate the object of the class. To …
Worth noting: this pattern became an anti-pattern similar to the GOTO statement very soon.
And as a side note: there are 23 design patterns in the book, not ‘about 23’….