Answered step by step
Verified Expert Solution
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
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
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