Question: 1a. Write C++ code to create an interface (abstract class) called Motorcar. 1b. Create two pure-virtual member functions which define a prototype without a definition.
1a. Write C++ code to create an interface (abstract class) called Motorcar.
1b. Create two pure-virtual member functions which define a prototype without a definition. Do this for the stop and accelerate methods of your Car class. Then modify Car to inherit from Motorcar and override the functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
