Which of the following statements is/are true about polymorphism in OOPs? (i)…

2022

Which of the following statements is/are true about polymorphism in OOPs?
(i) It may be achieved by function overloading.
(ii) It is used for reusability.

Answer: A. Only (i)Statement (i) is true because function overloading represents compile-time polymorphism. Statement (ii) is false as reusability primarily stems from…

  1. A.

    Only (i)

  2. B.

    Only (ii)

  3. C.

    Both (i) and (ii)

  4. D.

    Neither (i) nor (ii)

Attempted by 589 students.

Show answer & explanation

Correct answer: A

Statement (i) is true because function overloading represents compile-time polymorphism. Statement (ii) is false as reusability primarily stems from inheritance, not polymorphism itself.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…