-1

If I have methods like this int Add(int a,int b) float Add(float a,float b)

This is method overloading or not?

1 Answers1

0

Yes, it is overloaded because the method names are the same.

You can refer to the definition here. https://en.wikipedia.org/wiki/Function_overloading

Russell Sim
  • 1,693
  • 2
  • 14
  • 22