-
What is the return type of a method that does not return any value 2024?
方法
声明 语句
Questioner:Zoe Taylor 2023-05-05 10:25:55
The most authoritative answer in 2024
-

-
Caleb Richardson——Works at Uber, Lives in San Francisco. Holds a degree in Computer Science from Stanford University.
You declare a
method's return type in its
method declaration. Within the body of the
method, you use the
return statement to
return the
value.
Any method declared void doesn't
return a
value. It
does not need to contain a
return statement, but it may
do so.
read more >>
About “方法、声明、语句”,people ask:
QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.