// to represent a checking account in a bank public class Checking extends Account{ int minimum; // The minimum amount a customer is allowed to have // in their account at any particular point in time. Checking(int accountNum, int balance, String name, int minimum){ super(accountNum, balance, name); this.minimum = minimum; } // EFFECT: // withdraw the given amount from this account public int withdraw(int amount){ if (balance - amount < minimum) { throw new RuntimeException("Insufficient Funds for " + this.name + " Account."); } else { return this.balance = this.balance - amount; } } }