tannerlynn8897 tannerlynn8897
  • 16-11-2017
  • Computers and Technology
contestada

To create a default value for a parameter in the parameter list of a function, you code a/an ________________ sign after the parameter name followed by the default value.

Respuesta :

otisidev
otisidev otisidev
  • 25-11-2017
Assigning a default value to parameter makes it optional and such must come last in the list. example (c#):

void GetStudents(string gender, int page=1, int size = 10){

// body
}
In the above example, gender is a required while page and size are optional.
Answer Link

Otras preguntas

traveling at 65 miles per hour, how many minutes rounded to the nearest whole number, does it take to drive 125 miles from San Diego to Mailbu?
The past tense of the verb go is a. went. b. going. c. go. d. gone.
at higher speeds, a vehicle rate of acceleration will be what?
Write 0.00000414 in scientific notation. A) 4.14 x 10^-6 B) 4.14 x 10^-8 C) 4.14 x 10^-7 D) 4.14 x 10^-5
What was the main difference between castles and manor houses? a. Nobles lived in castles rather than manor houses b. Manor houses were small and simple. c.
I need Maze Runner quotes and the page number that goes with it “If you ain’t scared… you ain’t human.” -James Dashner, The Maze Runner
14 less than the product of 12 and 7
are gender stereotypes used too much in the 21st century?
What was the purpose of freedom riders
What is the value of k in the equation 2/7(k+5/8)=2 2/7