Question: ( code needs to be in ada ) Rather implement a single package / class using inheritance to allow multiple data types / objects in

(code needs to be in ada)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.
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

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!