/** 
    @author Elizabeth Adams
	 March 13, 2007
	 This is an implementation of the CheckingAccount as described in Gaddis - for Lab 15
*/

public class CheckingAccount extends BankAccount
{
  //    public final double FEE = .15;
	 private static double FEE = 0.15;
	 
	 public CheckingAccount(String name , double initAmount )
	 {
	    // String temp;
	    super(name, initAmount);
       String temp;
   	 temp = getAccountNumber();
		 temp = temp + "-10";
		 setAccountNumber(temp);
	 }// end constructor

   // super class withdraw header     public boolean withdraw(double amount)
	 
	 public boolean withdraw (double amount)
	 {
	    boolean result;
	    amount = amount + FEE;
         
	    try
		 {
		 super.withdraw(amount);
		 result = true;
		 }
		 catch (Exception e)
		 {
		    result = false;
		 }
		 return result;
	 }// end withdraw
}// end class	 


	 