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 package/class
using inheritance to allow multiple data types/objects in a heterogeneous list. Use this
package/class 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 (multi-threading 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 80722.364
IF Ford 354622
IR Boeing 1567342.783
IR Cessna 569574
PF
PL
D Ford
IR GMC 67988.992
IR RAM 88572.463
IF Chevy 53476.343
PN
PF
5
(In java please)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!