Slide 19 of 57
Lecture 2: Using Objects
Previous
Next
Overview
Return Values
Return value: A result that the method has computed for use by the code that called it
int n = greeting.length(); // return value is stored in n