The feature which allows different methods to have the same name and arguments type
Answers
Answered by
0
Answer:
Overloading allows different methods to have same name, but differentsignatures where signature can differ by number of input parameters or typeof input parameters or both. Overloading is related to compile time (or static) polymorphism.
Answered by
0
The feature which allows different methods to have the same name and arguments type is called Overloading
- Method Overloading enables various methods to have the exact name, but varied signatures where the signature can vary by the number of input parameters or kind of input parameters or a mixture of both.
- Several means of method overloading in java are changing the Number of Parameters, changing the Data Types of the Arguments and changing the Order of the Parameters of Methods.
- We will not be able to overload two methods in Java if they vary only by static keyword which means only by a number of parameters and types of parameters are the same.
#SPJ2
Similar questions