/* BankAccount.h CIS 250 2013-03-14 David Klick This is the header file for the BankAccount class for the Bank Account assignment. */ #ifndef __BANK_ACCOUNT_H__ #define __BANK_ACCOUNT_H__ #include #include #include class BankAccount { protected: char* accountNumber; double balance; private: static int count; void init(const char* accnum, const double bal); public: BankAccount(const char* accnum, const double bal=0.0); BankAccount(const BankAccount& ba); ~BankAccount(); const BankAccount& operator=(const BankAccount& ba); const char* getAccountNumber() const; double getBalance() const; void setAccountNumber(const char* accnum); void withdraw(const double amt); void deposit(const double amt); static int getCount(); friend std::ostream& operator<<(std::ostream& strm, const BankAccount& ba); }; #endif