Vidyalelo
C++ Programming · Q11

Polymorphism in C++

Programming · C++ Programming · question 11

Q11

What happens if a virtual function is not overridden in the derived class in C++?

A.
Compilation error
B.
Run-time error
C.
No error, the base class function is called.
Answer
D.
No error, the derived class function is called.

Answer: Option C

Solution

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