Method overloading
With method overloading, multiple methods can have the same name with different parameters:
Example:
int myMethod(int x)
float myMethod(float x)
double myMethod(double x, double y)
With method overloading, multiple methods can have the same name with different parameters:
Example:
int myMethod(int x)
float myMethod(float x)
double myMethod(double x, double y)