همه چیز درباره الگوی طراحی Singleton
200, OK
https://github.com/Vishnu24/Design-Patterns/wiki/Singleton-Pattern?1 icon

Singleton design pattern is one of the simplest design patterns: it involves only one class throughout the application which is responsible to instantiate itself, to make sure it creates not more than one instance; in the same time it provides a global point of access to that instance. In this case the same instance can be used from everywhere, being impossible to invoke directly the constructor each time. 

همه چیز درباره الگوی طراحی Singleton