-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBank.h
66 lines (56 loc) · 1.17 KB
/
Bank.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/** Bank class in a C++ code.
*
* #include "Bank.h" <BR>
* -llib
*
*/
#ifndef BANK_H
#define BANK_H
// SYSTEM INCLUDES
#include<iostream>
using std::string;
// LOCAL INCLUDES
#include"Account.h"
// Bank class definition
class Bank {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
Bank(const string& = "", int = 0, Account* = NULL);
// Use compiler-generated copy constructor, assignment, and destructor.
// Bank(const Bank&);
// Bank& operator=(const Bank&);
// ~Bank();
// OPERATIONS
/** function that shows balance.
*
* @param void
*
* @return void
*/
void ShowBalance()const;
// ACCESS
// setters
void SetName(const string& = "");
void SetBranchCode(int = 0);
void SetAccount(Account* = NULL);
void SetBank(const string& = "", int = 0, Account* = NULL);
/**
# @overload void SetBank(const Bank&);
*/
void SetBank(const Bank&);
// getters
const string& GetName()const;
int GetBranchCode()const;
Account* GetAccount()const;
const Bank& GetBank()const;
private:
// DATA MEMBERS
string mName;
int mBranchCode;
Account* mAccount;
};
// end class Bank
#endif
// _BANK_H_