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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education