// Arup Guha
// 2/15/2018
// Savings Account Class from Inheritance MC Questions

public class CheckingAccount extends BankAccount {

	private static final double FEE = 2.0;
	private static final double MIN_BALANCE = 50.0;

	public CheckingAccount(double balance) {
		super(balance);
	}

	public void withdraw(double amount) {
		super.withdraw(amount);
		if (getBalance() < MIN_BALANCE)
			super.withdraw(FEE);
	}

	public String toString() {
		return "CHECKING "+getBalance();
	}
}