-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpresident.h
More file actions
51 lines (41 loc) · 1009 Bytes
/
president.h
File metadata and controls
51 lines (41 loc) · 1009 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
#include "people.h"
#include "enumerations.h"
#include "seniorEmployees.h"
#include <iostream>
#include <string.h>
using namespace std;
#ifndef PRESEIDENT_H_
#define PRESIDENT_H_
class President : public seniorEmployee {
public:
President();
President(string first, string last, int age);
~President() { }
void setStateOfHire(bool state);
bool getStateOfHire() const;
private:
bool stateOfHire = false;
};
President::President() {
this->firstName = "";
this->lastName = "";
this->age = 18;
this->role = PRSDNT;
this->netWorth = 0;
this->stateOfHire = false;
}
President::President(string first, string last, int age) {
this->firstName = first;
this->lastName = last;
this->age = age;
this->role = PRSDNT;
this->netWorth = 0;
this->stateOfHire = false;
}
void President::setStateOfHire(bool state) {
this->stateOfHire = state;
}
bool President::getStateOfHire() const {
return this->stateOfHire;
}
#endif //PRESIDENT_H_