-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBank.h
More file actions
38 lines (33 loc) · 877 Bytes
/
Bank.h
File metadata and controls
38 lines (33 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef BANK_H
#define BANK_H
#include "Account.h"
class Bank
{
public:
Bank();
Bank( const char* name, int code );
~Bank();
public:
void SetBankName( const char* name );
void SetAccount( Account** account, int numbeOfAccounts );
void SetTotal( double total );
void SetCode( int code );
const char* GetBankName() const;
Account** GetAccounts() const;
int GetNumberOfAccounts() const;
double GetTotal() const;
int GetCode() const;
public:
void AddAccount( const Account& account );
void AddAccount( const Person& per, double amount );
void AddPerson( const Person& newPerson, const Account& account, double amount );
void DeleteAccount( const Account& account );
void DeletePerson( const Person& p );
private:
char* m_name;
Account** m_account;
int m_bankCode;
int m_numbeOfAccounts;
double m_totalBalance;
};
#endif // BANK_H