Multiple choice

Which of the following methods is used to achieve run-time polymorphism in C++?

  1. Function overloading

  2. Virtual function

  3. Operator overloading

  4. None of these

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

This is the method by which run-time polymorphism can be achieved in which function known at the time of execution, i.e. what operation has to be performed by the type and number of arguments.