Method Use
Let m be a method of class c
Let r refer to object o of class c
Then expression
r.m ( expression-list )
or statement
r.m ( expression-list );
invokes method m on object o
When method m is executed, field names signify the corresponding variables of object o
Example Invocation:
account1.deposit(200);
Previous slide
Next slide
Back to first slide
View graphic version