Which of the following best describes method overloading?
Practice this question from Quiz: OOPS Revision Sheet, with options and an explanation.
Question
Which of the following best describes method overloading?
Option A
A subclass providing its own behavior for a parent method at runtime.
Option B — Correct answer
Compile-time selection among methods with the same name but different signatures.
Overloading involves methods with the same name but different parameter lists, resolved at compile-time.
Option C
Runtime dispatch to a method based on the object's actual type.
Option D
Hiding unnecessary details of a method's implementation.