Difference Between Method Overriding and Method Overloading
What is the difference between method overriding and method overloading in Java?
Answers
Answered by
0
Method overriding, in object oriented programming, is a language feature that allows a subclass or child class to provide a specific implementation of a method that is already provided by one of its super classes or parent classes.
Method Overloading is a feature that allows a class to have two or more methods having same name, if their argument lists are different. In the last tutorial we discussed constructor overloading that allows a class to have more than one constructors having different argument lists.
Method Overloading is a feature that allows a class to have two or more methods having same name, if their argument lists are different. In the last tutorial we discussed constructor overloading that allows a class to have more than one constructors having different argument lists.
Similar questions
Biology,
8 months ago
Environmental Sciences,
8 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Biology,
1 year ago
Biology,
1 year ago
Biology,
1 year ago