#ifndef CheckingAccount_h #define CheckingAccount_h #include "Account.hpp" #include class CheckingAccount : public Account { public: CheckingAccount(double initBalance, double initFee): Account(initBalance) // this is the Account constructor { fee = initFee; }; ~CheckingAccount() { }; double credit( double creditamt) { return currentBalance += (creditamt-fee); } /*void debit(Account& ac, double fee) { ac.currentBalance -= (withdrawal - fee) >= 0 ? ac.currentBalance -= (withdrawal - fee) : cout << "No transaction completed"; };*/ private: double fee; }; #endif