Respuesta :
Answer:
public static double average(int num1, int num2){
return (num1+num2)/2;
}
public static double average(int num1, int num2, int num3, int num4){
return (num1+num2+num3+num4)/2;
}
Explanation:
- In the first instance, the method average() accepts two parameters and returns their average
- In the second instance the method accepts four parameters and returns their average
- The concept of method overloading allows a program to have more than method with the the same name but with different parameters list like we find in this example
The Answer is:
When public static double average(int num1, int num2){
return (num1+num2)/2;
}
When public static double average(int num1, int num2, int num3, int num4){
return (num1+num2+num3+num4)/2;
}
Explanation:
- In the first step is an instance, the method average() accepts two parameters and returns there is an average.
- In the second step is an instance the method accepts four parameters that return their average.
- When The concept of method overloading allows a program to have more than one method with the same name but they have a different parameters list as we find in this example
Learn more about:
https://brainly.com/question/21620623