Menu

(Solved) : Exercise 00063 Deadline 0915 2018 11 59 Pm Work Area Assume Following Class Created Write Q30937891 . . .

JAVA , THANK YOU. please read yellow highlight.

Exercise 00063_ deadline: 0915 2018 11:59 PM WORK AREA Assume that the following class has been created. Do not write any import statements. . The Aeroplane class has a String attribute called manufacturer, and another String attribute called modelNumber. It also has a primitive integer attribute called numberOfJets. These are all set by the constructor in that order. What you need to do: 1.) Write a sub-class of the Aeroplane class called PassengerAeroplane (Do NOT use the public keyword when declaring this class.) 2.) Your sub-class should have a private boolean attribute called firstClassCabin 3.) Your sub-class should have a constructor that takes four parameters: two Strings, a primitive integer, and a boolean 4.) The first parameter should be of type String and be called manufacturer 5.) The second parameter should be of type String and be called modelNumber 6.) The third parameter should be of primitive type integer and be called numberOfJets 7.) The fourth parameter should be of primitive type boolean and be called firstClassCabin 8.) The constructor should call the super class constructor using the super keyword using the two String parameters manufacturer, modelNumber, and the primitive integer parameter numberOfJets in that order 9.) The constructor should initialise the firstClassCabin attribute with the value passed into the constructor 10.) The PassengerAeroplane class should have a public getter method called getFirstClassCabin) that returns the value of the private instance variable firstClassCabin

Exercise 00063_ deadline: 0915 2018 11:59 PM WORK AREA Assume that the following class has been created. Do not write any import statements. . The Aeroplane class has a String attribute called manufacturer, and another String attribute called modelNumber. It also has a primitive integer attribute called numberOfJets. These are all set by the constructor in that order. What you need to do: 1.) Write a sub-class of the Aeroplane class called PassengerAeroplane (Do NOT use the public keyword when declaring this class.) 2.) Your sub-class should have a private boolean attribute called firstClassCabin 3.) Your sub-class should have a constructor that takes four parameters: two Strings, a primitive integer, and a boolean 4.) The first parameter should be of type String and be called manufacturer 5.) The second parameter should be of type String and be called modelNumber 6.) The third parameter should be of primitive type integer and be called numberOfJets 7.) The fourth parameter should be of primitive type boolean and be called firstClassCabin 8.) The constructor should call the super class constructor using the super keyword using the two String parameters ‘manufacturer’, ‘modelNumber, and the primitive integer parameter ‘numberOfJets’ in that order 9.) The constructor should initialise the firstClassCabin attribute with the value passed into the constructor 10.) The PassengerAeroplane class should have a public ‘getter’ method called ‘getFirstClassCabin)’ that returns the value of the private instance variable ‘firstClassCabin Show transcribed image text

Expert Answer


Answer to Exercise 00063 Deadline 0915 2018 11 59 Pm Work Area Assume Following Class Created Write Q30937891 . . .

OR