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

The hawks are an allegory for the dangers the boy is about to encounter in the desert.Which quotation from The Alchemist best supports this statement?"Sit down.
when the world war 2 ended?​
one or more substances changing into one or more substances is an example of a
How does population distribution reflect a particular region’s economy?
Who was the leader of the black nationalists in the 1920s?
Q-1 Which of the following can exist as cloud-based IT resources? A. Physical ServerB. Virtual ServerC. Software ProgramD. Network Device​
What are some things we can do to reduce/stop air pollution? Explain and give examples as to how this helps.
10. Which of the following is the correct way to rewrite the following fragment? The huge white van full of holiday packages for everyone. A. The huge whi
An automobile dealer has 10 Fords, 7 Buick’s, and 5 Plymouth’s in her used-car lot. If a person purchases a used car, find the probability that it is a Ford or
Is trapezoid ABDC the result of a dilation of trapezoid MNPQ by a scale factor of ? Why or why not? Yes, because AB and CD are each the lengths MN and QP. Yes,