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 ways — Polymorphism means the same operation (method call) can behave differently depending on the object type.
- A.
A class having only one constructor
- B.
Ability of different objects to respond to the same message in different ways
- C.
Restricting access to internal details
- 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.
Loading lesson…