#ifndef CHECKING_H #define CHECKING_H #include "bankaccount.h" #include using namespace std; class CheckingAccount : public BankAccount { private: double fee; public: CheckingAccount() : BankAccount(), fee(0.0) {} CheckingAccount (string n, double b, double f ) : BankAccount(n,b), fee(f) {} double getFee() const {return fee;} void withDraw(double amount); }; // definitions placed here for convenience. These should go in a .cpp file. void CheckingAccount::withDraw(double amount){ this -> BankAccount::withDraw(amount); balance -= fee; } #endif