Can we inherit Static Class in C# ?
Chintan Dave
Select an image from your device to upload
We can’t Inherit
Any class which does not contain instance contructor, cannot be inherited. Static class by default do not have non-static contructor (instance contructor) and that is why you cannot inherit it.
Not possible to inherit static class in c#. Basic usage of the static class is to make method and member static and can invoke by using name of the class without creating the object of the static class. The main purpose of the static class is to create only one istance of the member in the memory.
No, When working with static class oop says static class is sealed and can not be inherited by another class.