You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Violates Single Responsibility Principle (SRP) by controlling their own creation and lifecycle.
42
+
* Encourages using a global shared instance which prevents an object and resources used by this object from being deallocated.
43
+
* Creates tightly coupled code that is difficult to test.
44
+
* Makes it almost impossible to subclass a Singleton.
45
+
39
46
## Credits
40
47
41
48
*[Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612)
0 commit comments