Multiple choice technology programming languages

When a virtual function is inherited, its virtual nature is also inherited.

  1. True

  2. False

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

When a derived class inherits a virtual function, it remains virtual in the derived class. This enables polymorphism - a base pointer can call the correct overridden function at runtime. This is fundamental to C++ polymorphism.