subject

A car dealership needs a program to store information about the cars for sale. For each car, they want to keep track of the following information number of doors (2 or 4), whether the car has air conditioning, and its average number of miles per gallon. Which of the following is the best design? a. Use classes: Doors, Airconditioning, and MilesPerGallon, each with a subclass Car.
b. Use a class Car, with subclasses of Doors, Airconditioning, and MilesPerGallon.
c. Use a class Car with three subclasses: Doors, Airconditioning, and MilesPerGallon.
d. Use a class Car, with fields: numDoors, hasAir, and milesPerGallon.
e. Use four unrelated classes: Car, Doors, Airconditioning, and MilesPerGallon.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
What season was better from fortnite?
Answers: 2
question
Computers and Technology, 25.06.2019 11:00
In a paragraph of no less than 125 words, describe how you would create a new database using your software.
Answers: 1
question
Computers and Technology, 25.06.2019 17:30
Compete the sentence with the phrase that makes the proof statement true. c is the midpoint to segment ae segment ab is congruent to segment de length ac is equal to length ab plus length bc
Answers: 2
question
Computers and Technology, 25.06.2019 18:40
Many loop control variable values are altered by or adding to them
Answers: 3
You know the right answer?
A car dealership needs a program to store information about the cars for sale. For each car, they wa...
Questions
question
Mathematics, 16.10.2020 14:01
question
Mathematics, 16.10.2020 14:01
question
Mathematics, 16.10.2020 14:01
question
English, 16.10.2020 14:01
Questions on the website: 13722367