0

I was going through the singleton design pattern, I have a query regarding singleton pattern. -why there is need to create only one object for a class and what is the actual use of using singleton pattern? -what are the pros and cons for using singleton class?

G.Chahar
  • 185
  • 6
  • 19
  • http://stackoverflow.com/questions/86582/singleton-how-should-it-be-used?rq=1 – dbugger Apr 16 '17 at 16:23
  • Can you please help me with the concept of Early Instantiation and Lazy Instantiation? – G.Chahar Apr 17 '17 at 10:28
  • 1
    Possible duplicate of [Purpose of singletons in programming](http://stackoverflow.com/questions/2551112/purpose-of-singletons-in-programming) – jaco0646 Apr 17 '17 at 14:21

0 Answers0