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

6 points can someone help me
Mike spent $7920 on his vacation, which was 11% of his monthly salary. What was his monthly salary
A gas has a mixture containing oxygen, nitrogen, & carbon dioxide has a total pressure of 32.0 kPa. If oxygen = 6.6 kPa, nitrogen = 23.0 kPa, what is the pr
Approximately how long did one-party democratic rule last in texas? 10 years 50 years 100 years 150 years
Which of the following best describes computer animation ?
can you find y and z also please?
A group of people who worship the same god or gods
Please help I need this answer.
Tonya has a small picture with a length 4 1/5 of inches. She wants to enlarge the picture by a factor of 7 and frame it. Which of the following is true? A. The
What is diction? A. An author’s word choice B. Words that are inverted C. Connotation in dialect D. Formal language in poetry