-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccount.h
More file actions
58 lines (44 loc) · 1.02 KB
/
Account.h
File metadata and controls
58 lines (44 loc) · 1.02 KB
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
//
// Created by peterwest_1 on 2017/09/07.
//
#ifndef BANKINGRECORDSYSTEM_ACCOUNT_H
#define BANKINGRECORDSYSTEM_ACCOUNT_H
using namespace std;
class Account {
public:
//constructor
Account(int accountNumber, string firstName, string lastName, float balance);
//getter
int getAccountNumber(){
return this->accountNumber;
}
string getFirstName(){
return this->firstName;
}
string getLastName(){
return this->lastName;
}
float getBalance(){
return this->balance;
}
//setter
void setAccountNumber(int accountNumber){
this->accountNumber = accountNumber;
}
void setFirstName(string firstName){
this->firstName = firstName;
}
void setLastName(string lastName){
this->lastName = lastName;
}
void setBalance(float balance){
this->balance = balance;
}
private:
int accountNumber;
string firstName;
string lastName;
float balance;
protected:
};
#endif //BANKINGRECORDSYSTEM_ACCOUNT_H