-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmotorcycle.h
29 lines (23 loc) · 1007 Bytes
/
motorcycle.h
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
#ifndef MOTORCYCLE_H
#define MOTORCYCLE_H
#pragma once
class Motorcycle : public Vehicle {
int engineSize = 0;
int topSpeed = 0;
std::string type = "";
std::string brakeType = "";
public:
Motorcycle(std::string brand, std::string model, int productionYear, std::string registrationNumber,
int horsePower, std::string fuelType, std::string gearboxType, std::string driveType,
int fuelConsumption, int engineSize, int topSpeed, std::string type, std::string brakeType);
int getEngineSize() const { return engineSize; }
int getTopSpeed() const { return topSpeed; }
std::string getType() const { return type; }
std::string getBrakeType() const { return brakeType; }
void setEngineSize(int engineSize) { this->engineSize = engineSize; }
void setTopSpeed(int topSpeed) { this->topSpeed = topSpeed; }
void setType(std::string type) { this->type = type; }
void setBrakeType(std::string brakeType) { this->brakeType = brakeType; }
void displayData() const override;
};
#endif // MOTORCYCLE_H