return value
The result a method hands back.
A method with a non-void return type produces a value via return statements; void methods return nothing.
Examples
return price * qty;ends the method and hands the total back to whoever called it.
See also