Which of the following options are correct about overriding in csharp ?
Base class member must be a virtual or override member for overriding in derived class
It is not possible to override a static method in the derived class
Changing access specifier of a base class virtual or overridden method is not possible in the derived class override method
All the above options are correct
For overriding a method in the derived class the following conditions must be satisfied.
1. Access specifier must be same as base class virtual or override method.
2. Base class method must be declared as virtual or override.
3. Derived class override methods return type must be same as base class virtual or override method.
Back To Top