From e4bc857f1f7edf677c3ffec8021db57043db350d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 26 Jun 2020 15:01:47 +0300 Subject: Started working on a C++ basic bank account project. You can create an account, deposit and withdraw money from it for now. --- CPP/BABS/BankAccount.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CPP/BABS/BankAccount.h (limited to 'CPP/BABS/BankAccount.h') diff --git a/CPP/BABS/BankAccount.h b/CPP/BABS/BankAccount.h new file mode 100644 index 0000000..7e85b47 --- /dev/null +++ b/CPP/BABS/BankAccount.h @@ -0,0 +1,19 @@ +#ifndef TEST_BANKACCOUNT +#define TEST_BANKACCOUNT +#include + +class BankAccount { + int id, balance; + bool closed; + public: + BankAccount(); + BankAccount(int); + int getId(); + int getBalance(); + void deposit(int); + int withdraw(int); + std::string toString(); + void close(); +}; + +#endif \ No newline at end of file -- cgit v1.2.3