-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathceo.h
More file actions
57 lines (41 loc) · 894 Bytes
/
ceo.h
File metadata and controls
57 lines (41 loc) · 894 Bytes
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
#include "people.h"
#include "enumerations.h"
#include "seniorEmployees.h"
#include <string.h>
#include <iostream>
using namespace std;
#ifndef CEO_H_
#define CEO_H_
class Ceo : public seniorEmployee{
public:
Ceo();
Ceo(string first, string last, int age);
~Ceo() { }
void setHire(bool stateOfHire);
bool getHire() const;
bool hired = false;
private:
};
Ceo::Ceo() {
this->firstName = "";
this->lastName = "";
this->age =18;
this->role = CEO;
this->netWorth = 0;
this->hired = false;
}
Ceo::Ceo(string first, string last, int age) {
this->firstName = first;
this->lastName = last;
this->age =age;
this->role = CEO;
this->netWorth = 0;
this->hired = false;
}
bool Ceo::getHire() const {
return this->hired;
}
void Ceo::setHire(bool stateOfHire) {
this->hired = stateOfHire;
}
#endif //CEO_H_