: Write a program with two encapsulated classes Vehicle (color) and MotorCar (numberOfSeats) with appropriate constructors and functions to set, input, print & return their data members. The MotorCar class should be child of Vehicle to inherit data for reusability of code. In main function, write code to input 50 MotorCar objects and display the MotorCars whose number of seats is 2 and the color is “Blue”.
1
Expert's answer
2020-08-25T10:56:53-0400
Dear AHSGDJS, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment