Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Payroll Accounting 2022

Authors: Bernard J. Bieg, Judith A. Toland

32nd Edition

0357518756, 9780357518755

More Books

Students also viewed these Accounting questions

Question

3 When is it a good idea to use the internal supply of labour?

Answered: 1 week ago

Question

5 What are the main aims of talent management?

Answered: 1 week ago