Vidyalelo
C++ Programming · Q8

Inheritance in C++

Programming · C++ Programming · question 8

Q8

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
Answer
D.
Method in the base class overrides the derived class method

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board