Object-Oriented Programming (OOP)
What does Dynamic binding refer to?
- A. A mechanism where the method to be executed is determined at compile time based on the object's declared type.
- B. A mechanism where the method to be executed is determined at runtime rather than at compile time. ✓
- C. The process by which objects communicate with one another by invoking each other's methods.
- D. A design guideline suggesting that building complex behavior by combining objects is often preferable to relying solely on class inheritance.
Correct answer
B. A mechanism where the method to be executed is determined at runtime rather than at compile time.
Explanation
Dynamic binding refers to a mechanism where the method to be executed is determined at runtime rather than at compile time.