Car fuel capacity serial number passenger capacity net


Question 5.2: Consider the following objects and their properties:

Car: fuel capacity, serial number, passenger capacity, net weight, license plate Boat: fuel capacity, serial number, passenger capacity, net weight, draft

We want to use inheritance to implement the above given objects. Define a third class which can be the superclass. Provide a list of fields that will be included in each of the classes.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Car fuel capacity serial number passenger capacity net
Reference No:- TGS02919143

Expected delivery within 24 Hours