Multiple choice

Polymorphism can be achieved by _______

  1. function overloading

  2. function overriding

  3. both 1 and 2

  4. none of these

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

Polymorphism can be achieved through both function overloading (compile-time, same name different parameters) and function overriding (runtime, same signature different implementation in derived classes). Options A and B individually are incomplete - both mechanisms achieve polymorphism.