![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhykhVnHlrQ3aeTiEKfrGgqqUrtTyLPABU7ytT7dM1xyI3iVKGhgSZj6toUNwMsxP0QTWLPi_p0IV0jxH-VOaCO5KcGC6VG6TH83Fz4SpEPu-44cP97yZlE0GT7xK5DVtrJF91Teico9qsM/s400/SingletonPattern.jpg)
The Singleton Design Pattern which is widely used ensures that there is a single instance of the object and it also provides a global point of access to it.
I have covered couple of examples on Singletons in past and you are welcome to refer to them as an example for this design pattern. The simple example is here and a more involved one is here.
To learn more about Singletons see:
No comments:
Post a Comment