• Post Reply Bookmark Topic Watch Topic
  • New Topic

Singleton  RSS feed

 
Suresh K Babu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it possible to create more than one instance of Singleton class?

Thanks,
Suresh
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends, of course, on how well the Singleton class was implemented -- and also, to some extent, on your definition of "class".

Of course, the whole point of a Singleton class is that there is only one instance. As soon as you can create more than one, it's not a Singleton anymore -- so the answer is "no"!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!