Which of the following options best describes dynamic binding in…

2025

Which of the following options best describes dynamic binding in object-oriented programming?

  1. A.

    It enables the decision of which method to invoke to be made during runtime based on the actual object.

  2. B.

    It refers to associating a variable with a data type at the time of compilation.

  3. C.

    It restricts object behaviour to predefined compile-time rules.

  4. D.

    It statically assigns methods to function calls using compile-time type information.

Attempted by 82 students.

Show answer & explanation

Correct answer: A

Dynamic binding (also known as late binding or runtime polymorphism) means that the code associated with a specific method call is not determined until the program is running.

When a parent class reference points to a child class object, the system looks at the actual object at runtime to decide which overridden method to execute, rather than looking at the reference type used during compilation

Explore the full course: Rssb Senior Computer Instructor