Beginner
C++
Q15 / 100
What does the virtual keyword do?
Correct! Well done.
Incorrect.
The correct answer is B) Enables runtime polymorphism by allowing derived classes to override the function
B
Correct Answer
Enables runtime polymorphism by allowing derived classes to override the function
Explanation
virtual methods are dispatched at runtime through a vtable, enabling polymorphism when calling through a base class pointer or reference.
Progress
15/100