Question: 3. Write a code to test your classes by performing the following tasks: a) create a Flight object called myFlight where the flight number is

3. Write a code to test your classes by performing the following tasks: a) create a Flight object called myFlight where the flight number is 251 . b) add 2 Passengers to myFlight using the method addPassenger() c) print the name of oldest Passenger in the flight by calling the method oldestPassenger() d) call the method savelntoFile() to save the required information
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
