Þessi vafri er ekki lengur studdur.
Uppfærðu í Microsoft Edge til að nýta þér nýjustu eiginleika, öryggisuppfærslur og tæknilega aðstoð.
Which of the following method signatures correctly defines 3 integer parameters?
void Multiply(int a, b, c)
void Multiply(int a, int b, int c)
void Multiply(int a; int b; int c)
Given the method signature, void Print(string name, string number = "", bool member = false), which of the following options correctly uses named and optional arguments?
void Print(string name, string number = "", bool member = false)
Print("Tony", member: true);
Print(number: "555", member: false)
Print("Tony", false)
Given the following method signature, void SetHealth(string health), why don't operations inside the method affect the original input string health?
void SetHealth(string health)
health
The string data type is pass by value.
string
The method code must be incorrect.
Strings can't be altered once assigned. They can only be overwritten with a new value.
You must answer all questions before checking your work.
Var þessi síða gagnleg?
Þarftu hjálp með þetta efni?
Viltu prófa að nota Ask Learn til að skýra eða leiðbeina þér í gegnum þetta efni?