-
Notifications
You must be signed in to change notification settings - Fork 0
/
employee.hpp
77 lines (66 loc) · 1.05 KB
/
employee.hpp
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
69
70
71
72
73
74
75
76
77
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
//#include "EmployeeAdaptor.hpp"
class Employee {
public:
Employee() ;
virtual ~Employee() = 0;
void setName(std::string name) {
mName = name;
}
void setAddress(std::string address) {
mAddress = address;
}
void setId(int Id) {
mId = Id;
}
std::string getName() {
return mName;
}
std::string getAddress() {
return mAddress;
}
int getId() {
return mId;
}
private:
std::string mName;
std::string mAddress;
int mId;
};
class Fresher : public Employee {
public:
private:
std::string mJob;
};
class TL : public Employee {
public:
private:
std::string mJob;
};
class PM : public Employee {
public:
private:
std::string mJob;
};
class CallHandler {
public:
void getCallHandler();
Fresher* getFirstAvailableFresher() {
return &frsh;
}
TL* getTL() {
return &tl;
}
PM* getPM() {
return ±
}
private:
Fresher frsh;
PM pm;
TL tl;
};
void CallHandler :: getCallHandler() {
}