Which of the following is not true about polymorphism?

Asked In Exam: BPSC TRE 3.0

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:

  • Compile-time polymorphism

  • Runtime polymorphism

So the statement that it always increases overhead is incorrect.

OOps! You are currently offline.