
public class CheckingAccount 
extends BankAccount
{
	
	// in a checking account, monthly fee is $1.00
	public void deductMonthlyFee() {
		// monthly fee is $1.00
		this.withdraw(1.00);
	}
	
	// in a checking account, withdraw charges a transaction fee of $0.50
	public boolean withdraw(double amount) {
		// instead of withdrawing amount, withdraw amount + 50 cents
		return super.withdraw(amount + 0.50);
	}
	
}
