Pelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
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.
Adakah halaman ini membantu?
Perlukan bantuan dengan topik ini?
Ingin cuba menggunakan Ask Learn untuk menjelaskan atau membimbing anda melalui topik ini?