Object-Oriented Programming · Question 3 · Easy

Object-Oriented Programming question 3

Which OOP feature lets a single reference of a parent type call different overridden method implementations depending on the actual object at run time?

  1. Encapsulation
  2. Runtime polymorphism (dynamic dispatch)
  3. Method overloading
  4. Abstraction
Answer and explanation

Answer: B. Runtime polymorphism (dynamic dispatch)

Explanation: Runtime polymorphism (dynamic method dispatch) picks the overriding method of the actual object at run time. Overloading is resolved at compile time.

Previous: Method overloading (same method name, different parameter lists in one class)… · Next: Which statement about constructors in Java is correct?

Practise object-oriented programming

Try a fresh set of object-oriented programming questions with an explanation after every answer, free and without signing up: Object-Oriented Programming practice. Or sit a full placement mock test.

More object-oriented programming questions

More technical & programming practice

DBMS · SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge