Which of the following best defines polymorphism?

Which of the following best defines polymorphism?

Answer: B. Ability of different objects to respond to the same message in different waysPolymorphism means the same operation (method call) can behave differently depending on the object type.

  1. A.

    A class having only one constructor

  2. B.

    Ability of different objects to respond to the same message in different ways

  3. C.

    Restricting access to internal details

  4. D.

    Binding method calls at compile time only

Attempted by 393 students.

Show answer & explanation

Correct answer: B

Polymorphism means the same operation (method call) can behave differently depending on the object type.

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…