/** Class represents checking accounts 
 *
 * @author Tony Gaddis - Updated by N Harris
 * @version V2 - 03/13/07
 */
public class CheckingAccount extends BankAccount
{
	/** fixed fee for all checking account transactions */
	private static double FEE = .15;
	
	/** Explicit value constructor
	 *
	 * @param name The name of the owner of this account
	 * @param begBal The initial balance for this account
	 */
	public CheckingAccount(String name, double begBal)
	{
		super(name, begBal);
		setAccountNumber(getAccountNumber() + "-10");
	}
	
	/** withdraw withdraws the amount and any applicable
	 *  fees
	 *
	 * @param amount The amount of the withdrawal
	 * @return true if a successful withdrawal, false if not 
	 *              enough money to withdraw the amount.
	 */
	public boolean withdraw (double amount)
	{
		amount = amount + FEE;
		return super.withdraw(amount);
	}
}