PP 4.8 Write a class called Flight that represents an airline flight. It should contain instance...
Question:
Transcribed Image Text:
PP 4.8 Write a class called Flight that represents an airline flight. It should contain instance data that represents the airline name, flight number, and the flight's origin and destination cities. Define the Flight constructor to accept and initialize all instance data. Include getter and setter methods for all instance data. Include a tostring method that returns a one-line description of the flight. Create a driver class called FlightTest, whose main method instantiates and updates several Flight objects.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (2 reviews)
Answered By
Jonas Araujo
I have recently received the degree of PhD. In Physics by the Universidade Federal do Maranhão after spending a term in Durham University, as I have been awarded a scholarship from a Brazilian mobility program. During my PhD. I have performed research mainly in Theoretical Physics and published works in distinguished Journals (check my ORCID: https://orcid.org/0000-0002-4324-1184).
During my BSc. I have been awarded a scholarship to study for a year in the University of Evansville, where I have worked in detection-analysis of photon correlations in the the Photonics Laboratory. There I was a tutor in Electromagnetism, Classical Mechanics and Calculus for most of that year (2012).
I am very dedicated, honest and a fast learner, but most of all, I value a job well done.