My question is why members are not by default static in static class.
As we see, interface members are by default public and abstract.
Thanks, Anil
My question is why members are not by default static in static class.
As we see, interface members are by default public and abstract.
Thanks, Anil
We should ask c# language designer.
But I understand the ratio behind: it forces the programmer to say "this function is static", even if it would be implied by the fact the the class is static.
Maybe It's a matter of readability: when you read a method without body (and no abstract keyword), you know that this method can only be part of an interface. When you read a method without "static" modifier, you would need to read also class declaration to understand that is part of a static class and therefore static itself