Hi,
How is Flight assigned to Aircraft?
If Book Item is-a Book, then Flight is-an Aircraft. what is the difference why are we considering Flight is assigned to Aircraft.
The assumption for the below question: Flight is not an Aircraft
Aircraft has the method getFlights and it says Flight class knows(calls) about Aircraft as per diagram. If Flight class knows about AirCraft, shouldn’t it be like get details of aircraft in Flight?
The flight is assigned to Airport:
How come flight only knows(calls) about Airport(Flight–>Airport)? We can get details of flights from the airport class also.
Crew vs Flight Instance
Flight instance will have Crew/Pilot details, but the diagram says Crew/Pilot know about Flight Instance. Shouldn’t it be a two-way association? In the initial basics, it is shown as the two-way association.
Thanks,
Surya