Java-Object Oriented Programming
Basic concept of object oriented programming
Hello friends, In this article I am going to discuss with you about method overriding and method overloading.
Therefore method overloading and method overriding are a very important concept in java. because they are confusing concepts for novice
programmers. So I am going to illustrate their definitions, differences, and examples for them.
- Method Overloading
There are two or more methods in one class have the same method with different parameters.
Ex:

2.Method Overriding
There are two methods with the same method name and parameters.but one method is a parent class and the other method is child class.
therefore Overriding allows a subclass(child class) to provide a specific implementation of a method that is already provided its parent class.
Ex:

3. Differences between method overriding and method overloading
There are many differences between method overloading and method overloading in java.

As the above, these are the main differences that we have to see in the method overloading and method overriding.