Multiple choice

Polymorphism in C++ is a

  1. process to derive a class from Base class

  2. a way in which entity behaves in several forms

  3. process to hide complexity of a program

  4. none of the above

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

Polymorphism means 'many forms'. In OOP, it allows objects of different classes to be treated as objects of a common superclass, with each class implementing the same method differently. This is achieved through virtual functions, function overloading, and operator overloading in C++.