-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathVehicle.h
More file actions
31 lines (22 loc) · 741 Bytes
/
Vehicle.h
File metadata and controls
31 lines (22 loc) · 741 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
//
// Created by Esteban Parra on 9/5/19.
//
#ifndef DRIVINGSIMULATOR_VEHICLE_H
#define DRIVINGSIMULATOR_VEHICLE_H
#include <string> // std::string, std::stoi
using namespace std;
class Vehicle {
private :
string myBrand, myModel;
public:
explicit Vehicle(string brand = "unknown", string model = "unknown");
virtual ~Vehicle();
string getBrand();
void setBrand(string brand);
string getModel();
void setModel(string model);
virtual string toString();
virtual double mileageEstimate(
double time) = 0; // Method that computes how many miles can be traversed by the vehicle in the given amount of time. The time parameter is given in minutes
};
#endif //DRIVINGSIMULATOR_VEHICLE_H