Question: The code for the question, the answer is not enough, I just want the uml and the code is complete only Flights has two types

The code for the question, the answer is not enough, I just want the uml and the code is complete only
 The code for the question, the answer is not enough, I

Flights has two types also CargoFlights and PassengerFlights, CargoFlights add load of 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)*CostPer 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. It has been decided to use an object oriented approach to desion and implement them. Assignment activity and guidance Task 1 Briefly describe the following Object oriented concepts. Provide diagrams and code snippets (you must write the code) to supplement your explanations. i) static variables and methods ii) Constructors and finalize methods ili) default modifier and information hiding iv) Interfaces Task 2 1) Create a detailed UML class diagram for the JF system using a suitable UML tool. The classes should include attributes and methods. Explain one inheritance and one composition relationships existed in your UML. Tasks D) Implement the 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) Provide screenshots in addition to someone evidence of program execution Task

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!