Which method should the methods of class differ if they are to be treated as oveeloaded methods?
Answers
Answered by
0
Explanation:
Method overloading can be done in single class. Method overloading means same method name same class but different parameters in method . In inheritance there would be more than one class. ... But if you put same method name same parameter but different class then it is called method overriding.
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.
Similar questions
Business Studies,
6 months ago
Hindi,
6 months ago
Chemistry,
6 months ago
Math,
1 year ago
Math,
1 year ago