-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDriver.cpp
58 lines (47 loc) · 998 Bytes
/
Driver.cpp
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
//
// Benjy Berkowicz - 336182589
// Advanced Programming 2016-2017 Bar Ilan
//
#include "Driver.h"
#include "TripInfo.h"
#include "Taxi.h"
using namespace std;
Driver::Driver(int n_id, int n_age, MaritalStatus n_mStatus, int n_experience, int n_vehicleID) {
id = n_id;
age = n_age;
maritalStatus = n_mStatus;
yearsExperience = n_experience;
carID = n_vehicleID;
}
Driver::Driver() {
id = 0;
age = 0;
maritalStatus = SINGLE;
yearsExperience = 0;
carID = 0;
}
int Driver::getID() {
return id;
}
int Driver::getAge() {
return age;
}
MaritalStatus Driver::getMarital() {
return maritalStatus;
}
int Driver::getTaxi() {
return carID;
}
int Driver::getYears() {
return yearsExperience;
}
int Driver::getSatisfaction() {
return 0;
}
Driver::Driver(int n_id, int n_age, int n_experience, int n_vehicleID) {
id = n_id;
age = n_age;
maritalStatus = SINGLE;
yearsExperience = n_experience;
carID = n_vehicleID;
}