Computer Applications
In what situation does a method return a value?
User Defined Methods
60 Likes
Answer
For a method to return a value, it should have a return type other than void in its method prototype and it should return a value of the corresponding type using the return statement in the method body.
Answered By
37 Likes