-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStandardCab.cpp
More file actions
47 lines (41 loc) · 849 Bytes
/
StandardCab.cpp
File metadata and controls
47 lines (41 loc) · 849 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
//
// Created by moran on 03/12/16.
//
#include "StandardCab.h"
/**
* constractor.
* @param id cab id.
* @param km number of km of cab.
* @param cabType cab type.
* @param color cab color.
* @param cabSpeed cab speed.
* @param cabTarif cab tarif.
* @return nothing.
*/
StandardCab::StandardCab(int id, double km, enum CarType cabType,
enum Color color, int
cabSpeed, double cabTariff) :
Cab(id, km, cabType, color) {
speed = cabSpeed;
tariff = cabTariff;
}
/**
* get speed of cab.
* @return speed of cab.
*/
int StandardCab::getSpeed() {
return this->speed;
}
/**
* get tarif of cab.
* @return tarif of cab.
*/
double StandardCab::getTariff() {
return this->tariff;
}
/**
* destructor.
*/
StandardCab::~StandardCab() {
}
BOOST_CLASS_EXPORT(StandardCab)