Examveda

What happens if a derived class redefines a method that is already defined in its base class in C++?

A. Compilation error

B. Both methods are available separately

C. Method in the derived class overrides the base class method

D. Method in the base class overrides the derived class method

Answer: Option C


Join The Discussion

Related Questions on Inheritance in C plus plus