When two or more methods in a class share the same method name but have distinct parameters, this is known as overloading.
What is overloading ?
- Method overloading enables different methods to share the same name but have distinct signatures, where the signature can vary based on the quantity, nature, or combination of input parameters.
- In Java, method overloading is also referred to as early binding, static polymorphism, and compile-time polymorphism. When a method overloads, the child argument will take precedence over the parent argument.
- The capacity to define many functions bearing the same name but with various implementations is known as function overloading or method overloading.
- In a particular instance of polymorphism known as operator overloading, which is often referred to as operator ad hoc polymorphism, certain operators have various implementations based on their arguments. In general, a programming language, a programmer, or both define operator overloading.
To learn more about overloading refer :
https://brainly.com/question/14467445
#SPJ4