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 adaRather 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.
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
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
