Question: Create a class named Aircraft Each Aircraft contains a model code, number of seats, and sale price Model code can be 3, 7, or 8
Create a class named Aircraft Each Aircraft contains a model code, number of seats, and sale price Model code can be 3, 7, or 8 If the model code is 3, the number of seats is 200, and the sale price is $300 per seat If the model code is 7, the number of seats is 400, and the sale price is $400 per seat If the model code is 8, the number of seats is 600, and the sale price is $500 per seat Include a set method for the model code Within this set() method, the number of seats and the sale price are
Step by Step Solution
There are 3 Steps involved in it
Given datas 1 model code 3 noof seats 200 sale price per seat 300 2 model co... View full answer
Get step-by-step solutions from verified subject matter experts
