/* ------------------------------------------------------ Final form: omit the use "this" to access the **** implicit parameter variable **** ------------------------------------------------------ */ public class BankAccount { public int accNum; // These variables are used to public String name; // store information on public double balance; // "BankAccounts" /* ============================================== convToString(): return a String containing information of BankAccount ============================================== */ public String convToString( ) { return( "Account number: " + accNum + ", Name: " + name + ", Balance: " + balance); } /* ============================================== deposit(amount): Add "amount" to balance ============================================== */ public void deposit( double amount ) { balance += amount; } /* ====================================================== withdraw(amount): Subtract "amount" from balance ====================================================== */ public void withdraw( double amount ) { if ( balance >= amount ) balance -= amount; // Subtract "amount" from balance } }