Hi,
Can we inherit singleton class?
It depends on implementation. Singletons usually have private constructor and possibly marked sealed
, if it is so then you can't. If it is at least protected you can. If you just inherit from singleton class, result will not be singleton so you should follow the pattern and make it also singleton.
Sure. Why not? The inheriting class will be a specialization of the base Singleton class.
Instances of each of these classes (the base class and the specialized one) will be completely separate. In other words, their Instance members will point to separate objects.
Only the singleton class itself can create an instance... so I supposse the answer is not. I think you can do it, but then it will not be a singleton any more :D