Hi
i want know why method overloading
Code
int Add(int a, int b) { ...}Code
int Add(int a, int b, int c) { ... }Code
wu can useCode
add1 (int a, int b, int c)Code
why same name??Code
i faced this question in interviewint Add(int a, int b) { ...}int Add(int a, int b, int c) { ... }wu can use add1 (int a, int b, int c)why same name??i faced this question in interviewKnow the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shubham KumarRank #621 · 3.8K reputationPosted Feb 21, 2016, 11:46 PM EST
2) It's good to understand that "overloading" is just a bad term, because nothing is actually "loaded"; the sensible explanation of the term is merely "having methods of different signatures using the same name".
Sandeep NeelaRank #5,790 · 286 reputationPosted Feb 23, 2016, 10:36 AM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Feb 21, 2016, 11:42 PM EST
Jayakumar Vinayagam26 reputationPosted Feb 22, 2016, 12:04 AM EST
ajay kumar106 reputationPosted Mar 10, 2016, 9:30 PM EST