You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Vehicle.h
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -15,18 +15,13 @@ private :
15
15
string myBrand, myModel;
16
16
17
17
public:
18
-
Vehicle(string brand = "unknown", string model = "unknown");
19
-
18
+
explicitVehicle(string brand = "unknown", string model = "unknown");
20
19
string getBrand();
21
-
22
20
voidsetBrand(string brand);
23
-
24
21
string getModel();
25
-
26
22
voidsetModel(string model);
27
23
28
-
string toString();
29
-
24
+
virtual string toString();
30
25
virtualdoublemileageEstimate(
31
26
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
0 commit comments