/////// File FreeChecking.java /////// class FreeChecking extends Account { public FreeChecking(int n, // constructor double b, String owner) { super(n, b, owner); free = (b >= minBalance); } public FreeChecking() {} // no-arg constructor public boolean fee() // charge monthly fee { boolean ok; if ( ! free ) { if ( ok = withdraw(serviceFee) ) free = (balance() >= minBalance); return(ok); } return(true); } public boolean withdraw(double amt) // withdraw amt { boolean ok = super.withdraw(amt); if ( ok && balance() < minBalance ) free = false; return(ok); } public static void minbal(float m) // set min balance { minBalance = m; } public static void fee(float f) // set fee { serviceFee = f; } private static float minBalance = 250.0f; private static float serviceFee = 18.0f; private boolean free; }