+ 1
Derives of static
Hello In stack overflow said: "Static class always derive from object" What is mean????
1 Answer
+ 1
All classes are derived form System.Object.
if you read this
static class Calculate :
this is what is written
static class Calculate : System.Object
this is what is, not allowed
static class Calculate : Calculate2
Having a static class derive from another class
https://code.sololearn.com/cC6n5oKGEYql
quote :
https://stackoverflow.com/questions/6496707/static-classes-must-derive-from-object-c
The inheritance from System.Object is implicit by declaring nothing.
A static class can only have static members. Only instance members are inherited, so inheritance is useless for static classes.