A
Anders Eriksson
I wonder what's the difference between a Singleton class and a Static class?
// Anders
// Anders
Peter Duniho said:You mean other than the obvious?
I would say that the difference most likely to be pertinent in most
scenarios is that a singleton can implement an interface. In also can
inherit a class other than System.Object, and be inherited by another
class, while a static class cannot do any of those things.
Pete
As I have learned is a singelton a normal instance class that exist in only
one copy but a static class is a class that is accessed by using the type
itself
I wonder what's the difference between a Singleton class and a Static
class?