Question: Design and implement a class named Flight that has the following attribute airline number origin destination Fight implements Comparable The accessors, mutators and toString should

Design and implement a class named Flight that has the following attribute airline number origin destination Fight implements Comparable The accessors, mutators and toString should be implemented. Constructors should be overloaded. Design and implement child class named ActualFlight that has the added attribute of departure and arrival time. Create at least 10 Flight objects (should be a mix of Flight and ActualFlight objects) and place them in an array in the driver Print out all the Flight objects. Sort them using the sort method in the book. You do not need to implement the method. You can simply add the Sorting class to your project. The Flight objects should be sorted by airline, then by flight number. Print out all the Flight objects. Repeatedly Allow the user to enter information for a Flight object and do a search using Binary Search (in the book). Print out the information. Allow the user to reset the departure time and arrival time for this Flight if possible (instanceof is an operator that tests to see if an object is of a specific class type)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!