What is the purpose of a pure virtual function in C++?
A. It forces derived classes to implement the function.
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

Join The Discussion