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