Vidyalelo
C++ Programming · Q16

Polymorphism in C++

Programming · C++ Programming · question 16

Q16

What is the purpose of a pure virtual function in C++?

A.
It forces derived classes to implement the function.
Answer
B.
It prevents derived classes from implementing the function.
C.
It allows the base class to override the derived class's function.
D.
It allows multiple inheritance.

Answer: Option A

Solution

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