Multiple choice technology programming languages

Which of the following keyword supports dynamic method resolution?

  1. Abstract

  2. Virtual

  3. Dynamic

  4. Typeid

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

Virtual keyword in C++ enables dynamic method resolution through virtual functions and polymorphism. Virtual functions allow methods to be overridden in derived classes and the correct method to be called at runtime based on the actual object type. Abstract, Dynamic, and Typeid serve different purposes - abstract for pure virtual functions, typeid for type information.