QuesHub > 方法 > 声明 > 语句 > ASK DETAIL

What is the return type of a method that does not return any value 2024?

Isabella Thompson | 2023-05-05 10:25:55 | page views:1316
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Harper Collins

Studied at the University of Barcelona, Lives in Barcelona, Spain.
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.
2023-05-09 10:25:55

Emily Adams

QuesHub.com delivers expert answers and knowledge to you.
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.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4