Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Flights has two types also Cargo Flights and PassengerFlights. CargoFlights add load of the flight in tons and the cost per ton. PassengerFlights add the
Flights has two types also Cargo Flights and PassengerFlights. CargoFlights add load of the flight in tons and the cost per ton. PassengerFlights add the list of passengers. All flights must have functionality to calculate the revenue of the flight based on the following table: CargoFlights Load(Tons)*Cost Per Ton PassengerFlights The summation of the ticket price of all passengers of the flight Pilots and Passengers are persons, Persons have name, nationality and passport number. Each Passenger has the number of travelled KM and the ticket price. Pilots stores the flying hours and a list of spoken languages. Note: Flights and Aircrafts are too general. system using a suitable object oriented language. ii) Explain the term "Polymorphism". Demonstrate with the aid of a code snippet, how polymorphism can be achieved via method redefinition from the inheritance" code that you have produced in task 3 - (i). I) Provide screen shots in addition to source code as evidence of program execution Flights has two types also Cargo Flights and PassengerFlights. CargoFlights add load of the flight in tons and the cost per ton. PassengerFlights add the list of passengers. All flights must have functionality to calculate the revenue of the flight based on the following table: CargoFlights Load(Tons)*Cost Per Ton PassengerFlights The summation of the ticket price of all passengers of the flight Pilots and Passengers are persons, Persons have name, nationality and passport number. Each Passenger has the number of travelled KM and the ticket price. Pilots stores the flying hours and a list of spoken languages. Note: Flights and Aircrafts are too general. system using a suitable object oriented language. ii) Explain the term "Polymorphism". Demonstrate with the aid of a code snippet, how polymorphism can be achieved via method redefinition from the inheritance" code that you have produced in task 3 - (i). I) Provide screen shots in addition to source code as evidence of program execution
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started