Vamsi Krishna

Vamsi Krishna

  • 1.5k
  • 199
  • 18.1k

why we need method overloading

Feb 22 2016 4:26 AM
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
 

Answers (5)