[Solved] : Question 130632

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

Expert Answer

Answer to : Question 130632

Leave a Comment


We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?