kevon4131 kevon4131
  • 23-11-2017
  • Computers and Technology
contestada

When you ____ a method, you write multiple methods with a shared name but different parameter lists?

Respuesta :

otisidev
otisidev otisidev
  • 25-11-2017
When you overload a method, you write multiple methods with a shared name with different parameter list.
example c#
 int AddNumbers(int a, int b){
    return a+b;
};

int AddNumbers(double a, double a){
  return Convert.ToInt32(a+b);
}

Answer Link

Otras preguntas

:Sarah and bryan went shopping and spent a total of 47:50. bryan spent 15.50 less than what sarah spent. How much did bryan spend?
The nurse is reviewing a prescription for a medication with a client. On the prescription, the nurse read "DAW." What should the nurse teach the client? - A gen
In a certain town there were 332 robberies last year. This year the number of robberies has gone down 14%. How many robberies were there this year, to the neare
The product of two numbers is 20. If one of the numbers is 5/14, what is the other number
What is the sum of – 95 and its additive inverse?
When a reader makes inferences based on the details provided, it enables the reader to A. establish the setting. B. understand the plot. OC. make a comparison.
what are the internal and external conflicts in "A Doll’s House"
What is the range of the following function?
w + 7/w - 2 = w + 7/w-1 + 1​
the amount of data left on the cell phone is 6B after 8 days. 1.5B of data is used each day. How much data is available at the beginning of the cycle CHOICES:12