-
Notifications
You must be signed in to change notification settings - Fork 0
/
Car.h
42 lines (35 loc) · 838 Bytes
/
Car.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
39
40
41
#pragma once
#include <fstream>
#include <string>
using namespace std;
class Car
{
protected:
string brand;
string model;
int enginePower;
float engineCapacity;
float fuelUsage;
string gearboxType;
int mileage;
int cost;
bool availability;
public:
Car();
virtual ~Car();
virtual string getBrand() = 0;
virtual string getModel() = 0;
virtual int getEnginePower() = 0;
virtual float getEngineCapacity() = 0;
virtual float getFuelUsage() = 0;
virtual string getGearboxType() = 0;
virtual int getMileage() = 0;
virtual int getCost() = 0;
virtual bool getAvailability() = 0;
virtual char getType() = 0;
virtual void setMileage(int i) = 0;
virtual void setCost(int i) = 0;
virtual void setAvailability(bool b) = 0;
virtual void showData(bool showWidthDetails) = 0;
virtual void saveData(ofstream &file) = 0;
};