Multiple choice technology programming languages

virtual function defined in the parent class should be redefined in all of its inheriting child classes

  1. True

  2. False

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

Virtual functions in parent classes do NOT need to be redefined in all child classes. A child class can inherit the parent's implementation if it doesn't need custom behavior. The override is optional - it's only required if the child class needs specific behavior.