-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bus.h
39 lines (31 loc) · 932 Bytes
/
Bus.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
30
31
32
33
34
35
36
37
38
#pragma once
#include <fstream>
#include "Car.h"
class Bus : public Car
{
int numOfSeats;
int volume;
float capacity;
public:
Bus();
Bus(char *data[]);
~Bus();
string getBrand() { return brand; };
string getModel() { return model; };
int getEnginePower() { return enginePower; };
float getEngineCapacity() { return engineCapacity; };
float getFuelUsage() { return fuelUsage; };
string getGearboxType() { return gearboxType; };
int getMileage() { return mileage; };
int getCost() { return cost; };
bool getAvailability() { return availability; };
int getNumOfSeats() { return numOfSeats; };
int getVolume() { return volume; };
float getCapacity() { return capacity; };
char getType() { return 'b'; };
void setMileage(int i) { mileage = i; };
void setCost(int i) { cost = i; };
void setAvailability(bool b) { availability = b; };
void showData(bool showWidthDetails);
void saveData(ofstream &file);
};