public class CheckingAccount extends BankAccount { // Inherits: // Variables: accNum, name, balance // Methods: deposit(amount), withdraw(amount) /* ---------------------------------------------------- transfer(toAccount, amount) Note: I use the "this" implicit parameter in the code to make it clearer. You can in fact OMIT "this" because the name "withdraw" is not shadowed by any parameter or local variable: it must be an instance method. ---------------------------------------------------- */ public void transfer( BankAccount toAccount, double amount ) { this.withdraw(amount); // deduct amount from this account; toAccount.deposit(amount); // add amount to "toAccount"; } }