From be891b06d065504be51d094503c654377ebc22d7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 24 Oct 2020 15:25:54 +0300 Subject: Renamed C++ folder to C++ (from CPP) --- C++/BABS/BankAccount.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 C++/BABS/BankAccount.h (limited to 'C++/BABS/BankAccount.h') diff --git a/C++/BABS/BankAccount.h b/C++/BABS/BankAccount.h new file mode 100644 index 0000000..fbf808f --- /dev/null +++ b/C++/BABS/BankAccount.h @@ -0,0 +1,23 @@ +#ifndef TEST_BANKACCOUNT +#define TEST_BANKACCOUNT +#include + +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 \ No newline at end of file -- cgit v1.2.3