Aircraft Class: ● Instance Variables: o aircraftName O regNumber manufacturer ο ο ο Ο OOOO O maxRange crewSize yearPutinService maxServiceWeight numPassengers currentAirMiles lastMaintenanceDate lastMaintenance Miles

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
100%
Can you provide a general overview of the purpose of each method in Java?
Aircraft Class:
● Instance Variables:
O
O regNumber
O
O maxRange
crewSize
0 0
O
aircraftName
OOO OO
manufacturer
yearPutinService
maxServiceWeight
numPassengers
currentAirMiles
last MaintenanceDate
lastMaintenance Miles
Transcribed Image Text:Aircraft Class: ● Instance Variables: O O regNumber O O maxRange crewSize 0 0 O aircraftName OOO OO manufacturer yearPutinService maxServiceWeight numPassengers currentAirMiles last MaintenanceDate lastMaintenance Miles
●
O maxServiceWeight
O numPassengers
O currentAirMiles
0 0
lastMaintenanceDate
O lastMaintenance Miles
Methods:
O Two constructors, the default, and one that takes all instance variables
O needsMaintenance()- this method will determine if an aircraft is in need of
maintenance. It returns a Boolean value based on the following criteria. An aircraft
requires maintenance on the following schedule:
▪ Last maintenance date is 3 months or more
O
I Last maintenance mileage is 150,000 air miles or more
shouldRetire()- this method should return a Boolean value that determines whether an
aircraft is ready to be retired from service, based on the following criteria:
I More than 20 years past date put into service
More than 2,000,000 air miles
o toString()- See sample run for toString format
O
Only the getters and setters that are actually used.
et class:
I
Transcribed Image Text:● O maxServiceWeight O numPassengers O currentAirMiles 0 0 lastMaintenanceDate O lastMaintenance Miles Methods: O Two constructors, the default, and one that takes all instance variables O needsMaintenance()- this method will determine if an aircraft is in need of maintenance. It returns a Boolean value based on the following criteria. An aircraft requires maintenance on the following schedule: ▪ Last maintenance date is 3 months or more O I Last maintenance mileage is 150,000 air miles or more shouldRetire()- this method should return a Boolean value that determines whether an aircraft is ready to be retired from service, based on the following criteria: I More than 20 years past date put into service More than 2,000,000 air miles o toString()- See sample run for toString format O Only the getters and setters that are actually used. et class: I
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 8 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT