write my assignment 230

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.

 
"Not answered?"
Get the Answer