Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write the java code for the UML class diagram (and please don't copy and paste answers) flights (abstract) -number -duration -departing airport -arrival airport

image text in transcribed

please write the java code for the UML class diagram

(and please don't copy and paste answers)

flights (abstract) -number -duration -departing airport -arrival airport -list of passengers -pilots -aircrafts +getters and setters for all of them +to string passenger flights cargo flights polymorphism between these three classes +add the list of passengers. + ticket price +add load of the flight in tons and the cost per ton +calculate the revenue of the flight based on (Load(Tons)*CostPer Ton) +to calculate the revenue of the flight based on(The summation of the ticket price of all passengers of the flight)

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions