Implicit and Explicit Method Parameters

 

The implicit parameter of a method is the object on which the method is invoked

The this reference denotes the implicit parameter

  public void withdraw(double amount)

  {

     double newBalance = balance - amount;

     balance = newBalance;

  }

 

balance is the balance of the object to the left of the dot:
momsSavings.withdraw(500)

For example:

     double newBalance = momsSavings.balance - amount;

OR

     double newBalance = this.balance - amount;