aboutsummaryrefslogtreecommitdiff
path: root/C++/BABS/BankAccount.h
blob: fbf808f9611c3a7f17d5942bd70f759f48bf4d5b (plain) (blame)
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