Method Overloading

description of image


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)



Quiz


Question Text