-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccountant.h
More file actions
68 lines (53 loc) · 1.37 KB
/
accountant.h
File metadata and controls
68 lines (53 loc) · 1.37 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
68
#include "people.h"
#include <iostream>
#include <string.h>
#include "enumerations.h"
#include "juniorPartnerEmployees.h"
using namespace std;
#ifndef OBJECT_ORIENTED_ACCOUNTANT_H
#define OBJECT_ORIENTED_ACCOUNTANT_H
class Accountant:public juniorPartnerEmployee {
public:
Accountant();
Accountant(string first, string last, int age);
~Accountant() { }
int getJuniorPartnerId() const;
void setHasBeenHired(bool state);
bool getHasBeenHired() const;
Role_t getThisRole();
private:
int juniorPartnerId;
bool hasBeenHired = false;
Role_t role;
};
Accountant::Accountant() {
this->firstName = "";
this->lastName = "";
this->age=18;
this->role=ACCNTS;
this->juniorPartnerId=0;
this->hasBeenHired = false;
this->hiredGroupName = "";
}
Accountant::Accountant(string first, string last, int age) {
this->firstName = first;
this->lastName = last;
this->age=age;
this->role=ACCNTS;
this->juniorPartnerId=0;
this->hasBeenHired = false;
this->hiredGroupName = "";
}
int Accountant::getJuniorPartnerId() const {
return this->juniorPartnerId;
}
void Accountant::setHasBeenHired(bool state) {
this->hasBeenHired = state;
}
bool Accountant::getHasBeenHired() const {
return this->hasBeenHired;
}
Role_t Accountant::getThisRole(){
return this->role;
}
#endif //OBJECT_ORIENTED_ACCOUNTANT_H