Overloading in java
Overloading:
Overloading refers to the ability of an object or function to perform multiple tasks with the same name but with different parameters. This allows for the creation of multiple versions of the same function, each with its own unique functionality, which can be called based on the number, type, and order of parameters passed. This is a common feature in object-oriented programming languages such as Java.
There are two types of Java
1 Method overloading
2 Operator overloading
1. Method Overloading:
If we declare more than one method with same name and with different parameter list then it is called method overloading
2. Operator Overloading:
If we give more than one explanation for any one operator then it is called overloading.
Operator overloading is a not often used function in application improvement.
Operator overloading is a bit confusing orientated function.