aboutsummaryrefslogtreecommitdiff
path: root/C++/BABS/BankAccount.h
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-10-24 15:25:54 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-10-24 15:25:54 +0300
commitbe891b06d065504be51d094503c654377ebc22d7 (patch)
tree9ab8742b063a19c713a5ba923aa96605b4b752fa /C++/BABS/BankAccount.h
parent8f5cbebb028d9f9fba367019de0a45b43ab7ed4d (diff)
downloadSelf-learning-be891b06d065504be51d094503c654377ebc22d7.tar
Self-learning-be891b06d065504be51d094503c654377ebc22d7.tar.gz
Self-learning-be891b06d065504be51d094503c654377ebc22d7.zip
Renamed C++ folder to C++ (from CPP)
Diffstat (limited to 'C++/BABS/BankAccount.h')
-rw-r--r--C++/BABS/BankAccount.h23
1 files changed, 23 insertions, 0 deletions
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 <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 \ No newline at end of file