Create a plane class this class will represent a plane in


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 737").
  • toString(): will return the name of the plane's airline (e.g., "United"), followed by a star (" * "), and the model of the plane

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Create a plane class this class will represent a plane in
Reference No:- TGS01660438

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)