Which of the following statement is true about given code?
public abstract class A
public abstract int M();
public abstract int M1();
public class B:A
public override int M()
Code will be compiled successfully.
Compilation error, since derived class must give implementation for both the abstract methods.
Runtime error while creating the object of class B.
None of the above
We have to declare the derived class as abstract class, if we don't implement all abstract members present in the abstract base class.
Back To Top