Question
Define a Java class Airline that can reuse the code from the class Airplane (which you defined in Question #5 above) using composition, and it
Define a Java class Airline that can reuse the code from the class Airplane (which you defined in Question #5 above) using composition, and it should have the following features that are appropriate for a shipping company, such as name (String), annual_revenue (double), list_airplane (Airplane[ ]). Define the fully loaded constructor, one pair of accessor and mutator methods for each field, and the toString method. Please also ensure that the Airline class DOES have more than one airplanes according to your class definition. You do NOT need to write a main method for this problem.
Do in java
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