Constructor would accepts the car''s year and make


Write a class named Car that has the following member variables:
*year. The Year property the car's model year
*make. The Make Property holds the make of the car
*speed. The Speed Property holds the car's current speed

In addition the class should have the following member functions
*constructor--would accepts the car's year and make as arguments and assign these values to the object's year and make member variables.
*Accelerate. --the accelerate function should add 5 from the speed member variable each time it is called
*Brake- the brake function should minus 5 from the speed member variable each time it is called.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Constructor would accepts the car''s year and make
Reference No:- TGS080877

Expected delivery within 24 Hours