forked from CEN4020-Fall/assignment2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJet.h
More file actions
27 lines (21 loc) · 660 Bytes
/
Copy pathJet.h
File metadata and controls
27 lines (21 loc) · 660 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
//This file was written by Nicholas Watts on Oct 4, 2019.
//Code modeled on Bicycle.h and Car.h in parts, with differences
//in implementation annotated.
#ifndef DRIVINGSIMULATOR_JET_H
#define DRIVINGSIMULATOR_JET_H
#include "PoweredVehicle.h"
class Jet: public PoweredVehicle {
private:
int numberOfEngines;
public:
Jet();
explicit Jet(string brand, string model, string fuelType,
int engineNum = 1); //number of engines to be copied to
//private data
virtual ~Jet();
int getNumberEngines(); //NW added
void setNumberEngines(int newNum); //NW added
virtual double mileageEstimate(double time);
virtual string toString();
};
#endif