-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcashier.h
More file actions
58 lines (50 loc) · 1.18 KB
/
cashier.h
File metadata and controls
58 lines (50 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
//
// Created by prati on 12/7/2018.
//
#include "people.h"
#include <iostream>
#include "enumerations.h"
#include <string.h>
#include "juniorPartnerEmployees.h"
#ifndef OBJECT_ORIENTED_CASHIER_H
#define OBJECT_ORIENTED_CASHIER_H
using namespace std;
class Cashier:public juniorPartnerEmployee {
public:
Cashier();
Cashier(string first, string last, int age);
~Cashier() { }
void setHasBeenHired(bool state);
bool getHasBeenHired() const;
Role_t getThisRole();
private:
int juniorPartnerId;
bool hasBeenHired = false;
Role_t role;
};
Cashier::Cashier() {
this->firstName = "";
this->lastName = "";
this->age=18;
this->role=CASHRS;
this->juniorPartnerId=0;
this->hasBeenHired = false;
}
Cashier::Cashier(string first, string last, int age) {
this->firstName = first;
this->lastName = last;
this->age=age;
this->role=CASHRS;
this->juniorPartnerId=0;
this->hasBeenHired = false;
}
void Cashier::setHasBeenHired(bool state) {
this->hasBeenHired = state;
}
bool Cashier::getHasBeenHired() const {
return this->hasBeenHired;
}
Role_t Cashier::getThisRole() {
return this->role;
}
#endif //OBJECT_ORIENTED_CASHIER_H