/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package programming2.ch10.lab10;

/**
 *
 * @author Shung-Hsi Yu <syu07@nyit.edu> ID#0906172
 * @version Apr 16, 2014
 */
public class CheckingAccount extends BankAccount {
    public static final double FEE = 0.15;

    public CheckingAccount(String name, double amount) {
        super(name, amount);
        String oldAccountNumber = super.getAccountNumber();
        super.setAccountNumber("10" + oldAccountNumber);
    }

    @Override
    public boolean withdraw(double amount) {
        return super.withdraw(amount + FEE);
    }
}
@@ -395,17 +395,219 @@
 = 0.15;%0A
+    %0A    /**%0A     * Constructor for the CheckingAccount class.%0A     * @param name the name of the checking account owner%0A     * @param amount the initial amount this checking account starts with%0A     */
 %0A
-
     publ
@@ -807,17 +807,183 @@
 ;%0A    %7D%0A
+    %0A    /**%0A     * Withdraw the specified fee from this checking account. %0A     * A fee will be applied.%0A     * @param amount the amount of money to withdraw%0A     */
 %0A
-
     @Ove
@@ -1084,9 +1084,10 @@
 ;%0A    %7D%0A
-
 %7D
+%0A

Update CheckingAccount.java