Click to See Complete Forum and Search --> : Subclassing the Singleton class


Shobhana
January 8th, 2003, 10:32 PM
Hi everyone out there !

Could anyone tell me whether I can subclass a singleton class ? If so, how do I ensure that when instances of the derived class are created, each instance holds the reference of only one instance of A ?

:confused:
Shobhana

Andreas Masur
January 9th, 2003, 12:50 AM
Please do not cross-post your questions...this was answered here (http://www.codeguru.com/forum/showthread.php?s=&threadid=225746)...

Shobhana
January 9th, 2003, 12:59 AM
Hi Andreas Masur,

I posted my question in both the sections (C++ and Java) just to have a better chance of my question getting answered. No other intentions. I am sorry if I took your precious time.

Regards,
Shobhana