Methods that Return Values
Method invocation
object-expression .method-name(expression-list)
Method execution
initialize the parameters with the values of the argument expressions
execute the statement-list of the method
thereafter, continue where you were before
Non-void methods with return-type t can return a value of type t using the statement
return expression ;
Previous slide
Next slide
Back to first slide
View graphic version