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
Get step-by-step solutions from verified subject matter experts
