Design and implement a class named Flight that has thefollowing attributeairlinenumberorigindestinationFight implements ComparableThe accessors, mutators and toString should be implemented.Constructors should be overloaded.Design and implement child class named ActualFlight that hasthe added attribute of departure and arrivaltime.Create at least 10 Flight objects (should be a mix of Flightand ActualFlight objects) and place them in anarray in the driverPrint out all the Flight objects.Sort them using the sort method in the book. You do not needto implement the method. You can simply addthe Sorting class to your project.The Flight objects should be sorted by airline, then by flightnumber.Print out all the
PayPal Gateway not configured
PayPal Gateway not configured