Question: Rather implement a single package / class using inheritance to allow multiple data types / objects in a heterogeneous list. Use this package / class
Rather implement a single packageclass
using inheritance to allow multiple data typesobjects in a heterogeneous list. Use this
packageclass to implement a doubly linked list and process all B Option
transactions placing the cars and planes in a single list container Hint: Car and
Plane should inherit from a single ancestor. The links in the following diagram
will actually connect ancestor nodes. I would be impressed if you allowed planes to
have propeller or jet engines. Do not specify the engine type for cars! If you do this, you do
not have to use tasking multithreading or other means provided by your selection of
languages I would be even more impressed if you do both!!!!!!!
type InventoryItem is record
itemName: ItemType; unitPrice: Float; inStock: Integer;
end InventoryItem;
IF Ford
IF Ford
IR Boeing
IR Cessna
PF
PL
D Ford
IR GMC
IR RAM
IF Chevy
PN
PF
In java please
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
