Multiple choice

Is it important to define a virtual function in a base class even though it may not be used?

  1. Yes

  2. No

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

Virtual functions in base classes enable runtime polymorphism through dynamic binding. Even if not directly used in the base class, they must be declared to establish the interface for derived classes to override.