English, asked by rishilaugh, 1 year ago

difference between method overloading and method overriding in java

Answers

Answered by mambily1974
2
Method overloading deals with the notion of having two or more methods in the same class with the same name but different arguments. ... Method overriding is when a child class redefines the same method as a parent class, with the same parameters.

mambily1974: add as brainliest
Answered by Anonymous
0

Answer:

hey \: pls \: like \: my \: answer

Overriding vs. Overloading in Java:-

Overloading occurs:-

when two or more methods in one class have the same method name but different parameters.

Overriding allows :-

a child class to provide a specific implementation of a method that is already provided its parent class.

Similar questions