I'm almost done with my practice paper I have done with the first part and now I'm working in the second part I came to this question and I stopped and didn't know how to call method from another class here is the question "In the Assignment9Form class, write the code for the "Execute Query" button. If "Flight Number" is selected from the combo box, get the user's entry in the text box, and call the method getFlightsByNumber (from FlightSchedule class) Then call displayFlights, passing in the array of flights.
I added more information in case you need it
The excersice is about object-oriented technique of composition
the practice is to build a class representing a schedule of flights departing from UK.
The FlightSchedule class contains an array of Flight objects. It also provides methods for querying the array.
The Flight class contains an Airport object (the flight's destination) as well as two Pilot objects (the pilot and co-pilot for the flight).
The method displayFlights is provided. It will display any array of Flight objects to the output area.
There are three data file pilot flight and airports