-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpeople.h
More file actions
67 lines (54 loc) · 1.18 KB
/
people.h
File metadata and controls
67 lines (54 loc) · 1.18 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
59
60
61
62
63
64
65
66
67
#include <iostream>
#include <string.h>
#include "enumerations.h"
#ifndef PEOPLE_H_
#define PEOPLE_H_
using namespace std;
class People {
public:
People();
People(string first_name, string last_name, int age);
~People() { }
string get_name()const ;
Role_t get_role()const;
int getBankerId() const;
void setBankerId(int id);
string get_lastName() const;
protected:
string firstName;
string lastName;
int age;
int banker_id;
int netWorth;
Role_t role;
};
People::People() {
this->firstName = "";
this->lastName = "";
this->age =18;
this->role = PEOPLE;
this->netWorth = 0;
}
People::People(string first, string last, int age){
this->firstName = first;
this->lastName = last;
this->age = age;
this->role = PEOPLE;
this->netWorth = 0;
}
string People::get_name() const {
return this->firstName;
}
Role_t People::get_role() const {
return this->role;
}
int People::getBankerId() const {
return this->banker_id;
}
string People::get_lastName() const {
return this->lastName;
}
void People::setBankerId(int id) {
this->banker_id = id;
}
#endif //PEOPLE_H_