Question: please help me out with question... Create a class named JumboJet. A JumboJet has fields for aircraft model as a String, number of seats as
please help me out with question...
Create a class named JumboJet. A JumboJet has fields for aircraft model as a String, number of seats as an Integer, and fuel tank capacity as an Integer. Please include methods to set values to all fields. JumboJet further has a field for fuel efficiency as a double. Please include a method to calculate the fuel efficiency by dividing the fuel tank capacity by the number of seats. Methods to display the values in each JumboJet field are to be included in the class. Also included in the JumboJet class is a constructor. The constructor should initialize each JumboJet's aircraft model to B747, number of seats to 365, and fuel tank capacity to 183380. Save this class as JumboJet.java. Write a program that demonstrates that the constructor works by instantiating an object and displaying the initial values for all fields. Save the application as QueenofJumboJet.java. Please use proper indenting to write program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
