The car class has a constructor that initializes each data


Write the header file Car.h for the Car class. The Car class has three data members: miles_per_gallon (double), fuel (double), and model (string). The Car class has a constructor that initializes each data member. The Car class has four additional member functions:

· get_model : no parameters, returns model

· drive : double miles parameter, returns nothing

· add_fuel : double gallons parameter, returns nothing

· low_on_fuel : no parameters, returns true or false

Do not provide the implementation of the member functions.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: The car class has a constructor that initializes each data
Reference No:- TGS02797529

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)