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

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.

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!