Z
Zytan
I know you cannot have a sealed static class, but why not? Why must
static classes be left open to inheritance?
This article: http://msdn.microsoft.com/msdnmag/issues/03/07/NET/
recommends to place DLL imports into a sealed class, with a private
constructor to prevent instantiation (see Figure 1 at the very top):
http://msdn.microsoft.com/msdnmag/issues/03/07/NET/default.aspx?loc=&fig=true#fig1
Why not just make a static class to prevent instantiation? I assume
because then it can be inherited. But, you cannot make it sealed.
Why not?
Zytan
static classes be left open to inheritance?
This article: http://msdn.microsoft.com/msdnmag/issues/03/07/NET/
recommends to place DLL imports into a sealed class, with a private
constructor to prevent instantiation (see Figure 1 at the very top):
http://msdn.microsoft.com/msdnmag/issues/03/07/NET/default.aspx?loc=&fig=true#fig1
Why not just make a static class to prevent instantiation? I assume
because then it can be inherited. But, you cannot make it sealed.
Why not?
Zytan