monagarwal8257 monagarwal8257
  • 20-08-2020
  • Computers and Technology
contestada

Overloaded methods must be differentiated by: Select one: a. method name b. data type of arguments c. method signature d. None of the above

Respuesta :

frknkrtrn
frknkrtrn frknkrtrn
  • 23-08-2020

Answer:

b. data type of arguments

Explanation:

One of the ways to overload a method is using different type of arguments. Let's say we have a method that finds and returns two integer values

public int sumValues(int num1, int num2){

       return num1 + num2;

}

We can overload this method by passing double values as arguments

public double sumValues(double num1, double num2){

       return num1 + num2;

}

Answer Link

Otras preguntas

What influences the cuisine of particular countries? things like climate
A map has a scale of 1:1 000 000. If you measure a distance of 23.5 cm on the map between two cities, how far apart are the cities in kilometers.
Janis borrowed $1500 from her credit union for one year. The annual interest rate was 9% . What is the total amount she owes to her credit union ?
how many people died and were wounded in ww1
Is the number 526 a multiple of 6?
the early civilizations of Mohenjo-Daro and Harappa began around. A.10,000B.C. B.7,500 B.C. C.2,500 B.C. D.1,000 B.C.
if i had to interview martin luther during the renaissance what questions would i ask him
Suppose that in a lab you could remove all the oxygen from a terrarium. What would happen to the plants? Why?
-10x-8y=-20 20x+16y=4
What southeast city of Brazil is located near 23 degrees s and 43 degrees west?