Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

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...

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.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question