If a method is to be used to enter two values that will be used later in
Question:
If a method is to be used to enter two values that will be used later in the program, which of the following would be the most appropriate heading and call?
a. heading: public void InputValues(out int val1, out int val2)
call: InputValues(out val1, out val2);
b. heading: public void InputValues(int val1, int val2)
call: InputValues(val1, val2);
c. heading: public void InputValues(ref int val1, ref int val2)
call: InputValues(ref val1, ref val2);
d. heading: public int int InputValues( )
call: val1 = InputValues( );
val2 = InputValues( );
e. none of the above
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285096261
4th Edition
Authors: Barbara Doyle
Question Posted: