I have 3 classes (Air, Ocean and Ground) representing 3 modes of transportation:
Air:
Class Air
{
public int ID;
public datetime Start;
public datetime End;
public string FlightNo;
}
Ground:
Class Ground
{
public int ID;
public datetime Start;
public datetime End;
public string VehicleNo;
public string DriverName;
public string DriverMobile;
}
Ocean:
Class Ocean
{
public int ID;
public datetime Start;
public datetime End;
public string VessalName;
public string FTZNo;
}
I have an object named Job. Transportation is a part of Job. Job can have multiple Transportation(Air, Ocean, Ground)
How to assign Transportation list in Job class?