Hi ... [ Need ur suggestion NOT code .... ]
This is one part of my assignment .. I need your help on how to do this . Below is my short description of my problem ...
I have two classes Named Passenger class and container class .
Passenger class has its own variables like passenger name ( String ) , ID ( int ), and Injury Level (An enum class which has priority like 1 , 2 , 3 and 4 ).
Employee class has its own variable like containerID ( int ) , and ConatinerType ( this can be one of the three types URGENT , IMPORTANT , or GENERAL - these are from enum class )
I will be taking this passenger details[ has 100 of passenger details ] and container details [ 100 of container ] from a file and should write to an Array . Here comes my question.
1. How do i store the Passenger and Container class object in an single array.
[ Note : There must be only one array , not a separate array for passenger and a seperate array for containers.]
Hope i have given clear description of the problem ...