Multiple choice technology programming languages

Types of Polymorphism

  1. Operator overloading

  2. Virtual functions

  3. Virtual base class

  4. Function overloading

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

Polymorphism in C++ is achieved through compile-time methods (function overloading, operator overloading) and runtime methods (virtual functions). Virtual base class is used to solve the diamond problem in multiple inheritance but is not itself a type of polymorphism - it's an inheritance-related concept.