Multiple choice

Virtual functions enable the possibility for a function to be polymorphic when it is overridden in one or more inherited classes.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Virtual functions enable runtime polymorphism through dynamic binding. When a virtual function is overridden in derived classes, the correct function version is called based on the actual object type, not the pointer type. This allows different behaviors for the same function call across different classes in an inheritance hierarchy.