overloading
Declaring several methods with one name and different parameter lists.
Examples
print(int x)andprint(String s):print(5)andprint("5")call different methods.
Declaring several methods with one name and different parameter lists.
Examples
print(int x) and print(String s): print(5) and print("5") call different methods.