Difficulty: Easy
Correct Answer: 1, 3, 5
Explanation:
Introduction / Context:
Method overloading in C# permits multiple methods with the same name as long as their signatures are distinguishable by the compiler. Knowing what elements constitute the signature avoids ambiguity errors.
Given Data / Assumptions:
Concept / Approach:
Two methods are valid overloads when they share the same name but differ by parameter type lists. Differences can arise from type changes, the number of parameters, or their order (when it affects the type sequence). The return type alone cannot distinguish overloads.
Step-by-Step Solution:
Verification / Alternative check:
Try compiling pairs that only differ by return type (will fail) versus pairs that differ by parameter lists (will succeed).
Why Other Options Are Wrong:
Common Pitfalls:
Assuming return type overloading is allowed; it is not in C#.
Final Answer:
1, 3, 5
Discussion & Comments