Google News
logo
CPP - Quiz(MCQ)
Which statement is incorrect about virtual function.
A)
They are used to achieve runtime polymorphism
B)
They are used to hide objects
C)
Each virtual function declaration starts with the virtual keyword
D)
All of the above

Correct Answer :   They are used to hide objects


Explanation : Virtual function are used to achieve runtime polymorphism by calling the right function during runtime. Their declaration starts with a virtual keyword.

Advertisement