1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef TEST_BANKACCOUNT #define TEST_BANKACCOUNT #include <string> class BankAccount { int id, balance; bool closed; public: BankAccount(); BankAccount(int); int getId(); int getBalance(); bool getCloseStatus(); void deposit(int); int withdraw(int); std::string toString(); void close(); void reopen(); }; #endif