Which of the following is not true about polymorphism?
Which of the following is not true about polymorphism?(b) It is feature of OOP(c) Ease in readability of program(d) Increases overhead of function definition always(a) Helps in redefining the same functionality
Options
- A. It is feature of OOP
- B. Ease in readability of program
- C. Increases overhead of function definition always
- D. Helps in redefining the same functionality
Correct Answer (Detailed Explanation is Below)
C. Increases overhead of function definition always
Detailed Explanation
Explanation:
Let’s check each option:
(b) It is feature of OOP → ✅ True
(c) Ease in readability of program → ✅ True (polymorphism makes code cleaner and more flexible)
(a) Helps in redefining the same functionality → ✅ True (function overriding / overloading)
(d) Increases overhead of function definition always → ❌ Not true
Polymorphism does not always increase overhead.
Compile-time polymorphism (function overloading) has no runtime overhead.
Runtime polymorphism (virtual functions) may have slight overhead due to dynamic binding, but not always.
In C++, both types exist:
So the statement that it always increases overhead is incorrect.