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 correctly declares a method?
DisplayNumbers();
void DisplayNumbers{};
void DisplayNumbers() { }
Which of the following correctly calls a method?
GenerateID();
void GenerateID() {}
GenerateID;
Which of the following is true about the return keyword?
return
It's identical to the break keyword.
break
It terminates the execution of a method.
It must always be used with a value or expression.
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?