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
-> Declared the trivial destructors for all classes
-> Fully formatted toString methods for all classes
-> Added test cases in the main method for testing the implementations
-> Added validation on value for engine sizes in the Car class
Copy file name to clipboardExpand all lines: Vehicle.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,12 @@ private :
16
16
17
17
public:
18
18
explicitVehicle(string brand = "unknown", string model = "unknown");
19
+
20
+
virtual~Vehicle();
19
21
string getBrand();
20
22
voidsetBrand(string brand);
21
23
string getModel();
22
24
voidsetModel(string model);
23
-
24
25
virtual string toString();
25
26
virtualdoublemileageEstimate(
26
27
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