/* SavingsAccount.h CIS 250 2013-03-14 David Klick This is the header file for the SavingsAccount class for the Bank Account assignment. */ #ifndef __SAVINGS_ACCOUNT_H__ #define __SAVINGS_ACCOUNT_H__ #include "BankAccount.h" #include #include class SavingsAccount : public BankAccount { protected: double interestRate; private: static const double DEFAULT_INTEREST_RATE = 0.06; public: SavingsAccount(const char* accnum, const double bal, const double intrat = DEFAULT_INTEREST_RATE); double getInterestRate() const; void setInterestRate(const double intrat); void postInterest(); bool withdraw(const double amt); friend std::ostream& operator<<(std::ostream& strm, const SavingsAccount& sa); }; #endif