0 votes
in JAVA by
What is method overloading in java?

2 Answers

0 votes
by

What is method overloading in java?

Method Overloading is a feature that allows a class to have more than one method having the same name if their argument lists are different. It is similar to constructor overloading in Java, that allows a class to have more than one constructor having different argument lists.

0 votes
by

Method overloading in Java is a mechanism where a class defines multiple methods with the same name but with different parameters. The Java compiler automatically chooses the appropriate method to call based on the parameters passed to the method.

Related questions

0 votes
asked May 6, 2020 in C Sharp by SakshiSharma
0 votes
asked May 6, 2020 in C Sharp by SakshiSharma
...