Hi
i want know why method overloading
int 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 interview int 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 interview Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ajay kumarPosted Mar 11, 2016, 2:30 AM
Sandeep NeelaPosted Feb 23, 2016, 3:36 PM
Jayakumar VinayagamPosted Feb 22, 2016, 5:04 AM
Shubham KumarPosted Feb 22, 2016, 4:46 AM
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".
Rajeesh MenothPosted Feb 22, 2016, 4:42 AM