Polymorphism can be achieved by _______
-
function overloading
-
function overriding
-
both 1 and 2
-
none of these
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.