in case of singleton class you can create the object of singleton class and pass it to method but
we can not pass the static class to method.
it is easy to change the logic of creating the object with some pooling mechanism but its very difficult
to implement pooling mechanism with static class.
Singleton class does not say any restriction of Inheritence.So we should be able to do this as long as subclass is also
inheritance.There's nothing fundamentally wrong with subclassing a class that is intended to be a singleton.
but We can not inherit Static class to another Static class in C#.
after all singleton is kind of design pattern
Singletons allow you to reuse code and control object state much easier. This improves code-sharing, and can result
in a far cleaner body of code. With less code, your programs will usually have fewer bugs and will be easier to
i think above points are enough which demonstrate the some advantage of singleton over static.Kumar_jay99, if this helps please login to Mark As Answer. | Alert Moderator