PPT Slide
Calling (or Invoking) Methods
1. Invocation must be unambiguous re: which object or class the method is to act upon.
2. If the method call appears inside a class, then that class is presumed to contain the appropriate method:
public double getAmountEarned ( ) {
double dOpen = getOpenValue();
/* calls method in this class */
double dClose = getCloseValue();
/* calls method in this class */
public double getOpenValue() {
public double getCloseValue(){