-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaxiStandard.cpp
More file actions
34 lines (26 loc) · 891 Bytes
/
TaxiStandard.cpp
File metadata and controls
34 lines (26 loc) · 891 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
#include "TaxiStandard.h"
using namespace std;
//Constructor for standard Taxi with parameters.
TaxiStandard::TaxiStandard(int taxiId, int numOfKilometers, int tarrif,
color colorOfTaxi, manufacturer manufacturerOfTaxi)
: Taxi(taxiId, numOfKilometers, tarrif, colorOfTaxi, manufacturerOfTaxi)
{
speed = 1;
}
//Constructor for standard Taxi with parameters.
TaxiStandard::TaxiStandard(int taxiId, char colorOfTaxi1,
char manufacturerOfTaxi1) : Taxi(taxiId,
colorOfTaxi1,
manufacturerOfTaxi1)
{
speed = 1;
}
//Get the speed.
int TaxiStandard::getSpeed() const {
return speed;
}
//Set the speed.
void TaxiStandard::setSpeed(int speed1) {
speed = speed1;
}
BOOST_CLASS_EXPORT(TaxiStandard)