Hi ,
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).
Starter Code
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
sk8ergirl 0 Newbie Poster
Taywin 312 Posting Virtuoso
sk8ergirl 0 Newbie Poster
sk8ergirl 0 Newbie Poster
Taywin 312 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.