Click here to Skip to main content
15,914,070 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
what is singleton pattern? and what is the use? with example please reply me this question answer
Posted
Comments
[no name] 22-Sep-13 11:47am    
Is google broken where you live?

Please see:
http://en.wikipedia.org/wiki/Singleton_pattern[^].

Note that singletons should be user rarely, when it is really needed. See, for example: http://www-106.ibm.com/developerworks/library/co-single.html[^].

There are many bad singleton implementations around. You can find good ones here: http://csharpindepth.com/Articles/General/Singleton.aspx[^].

—SA
 
Share this answer
 
Singletons are something to be avoided.

http://www.richardlord.net/blog/better-without-singletons[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900