(Solved):Create a Plane class. This class will represent a plane in our system. It should contain a constructor, two instance variables (an Airline enumeration, and a String) and three methods (getAirline,… View Answer…

 

Question

Create a Plane class. This class will represent a plane in our system. It should contain a constructor, two instance variables (an Airline enumeration, and a String) and three methods (getAirline, getModel, toString).

The constructor will take an Airline and String and use them to set up the instance variables.

getAirline(): will return the Airline of the plane (e.g., Airline.United).

getModel(): will return a String containing the model of the plane (e.g., “Boeing

Scroll to top