// CheckingAccount.h

#ifndef CHECKINGACCOUNT_H
#define CHECKINGACCOUNT_H

#include "BankAccount.h"

class CheckingAccount: public BankAccount
{
public:
   CheckingAccount(double initialAmount, 
                   double newMinBalance, double newCharge);
   void withdraw(double amount);
private:
  double minBalance; // min. balance to avoid charge
  double charge;     // charge per check 
};

/*
   Note that there is no charge for withdrawal as long as the account
   has at least minBalance after the withdrawal. 

   Suppose that balance is 250.00, minBalance is 200.00, and charge is 10.00.
   If we withdraw 100.00 from this account, we should have 140.00 left in
   the account.
*/

#endif

