What is the return type of a method that does not return any value 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
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
评论(499)
Helpful(122)
Helpful
Helpful(2)

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.