What is An Singleton Class?

India
March 9, 2007 4:26am CST
What is an Singleton class?how it is used ?when it is used?
2 responses
@jhawithu (1070)
• India
20 Apr 07
A class whose number of instances that can be instantiated is limited to one is called a singleton class. Thus, at any given time only one instance can exist, no more.
• India
15 Mar 07
Singleton class is a class which can have only one instantiated object. There is a restriction on the instantiation of the class. Well yes a singleton can be created, but it can't be instantiated by developers, - meaning that the singleton class has control over how it is created. If you want further details send a mail to me on shoyebpathan@gmail.com