Home > Back-end >  Java motor vehicles
Java motor vehicles

Time:10-07

Definition: motor vehicles -
1, the realization of auto mileage statistics;
2, the definition of models, mileage, model and method of color
3, display the mileage car information (1), define the auto wrapper class, Vehicle
Properties: a multitude; Model; Mileage. Color; Production site; If they start; Production date
Car constructor: the default method, the method of whether to start
Common methods for each attribute,

(2), add car method add (Vehicle v)
(3), the method of display cars information
(3), the initialization - to generate random data or input mileage
(4), the method of display mileage statistics
(5), the test of the main program {
Define an array of storage mileage, 10 mileage,
For specific mileage with initialization method to produce
According to car mileage;
Produce car class instance
Add a car
Show the information to car
}

CodePudding user response:

Suggests that topic, seek the answer, directly to others to help you do the homework, should no one will help you, if it is, you write the code, which can't or don't understand, there will be a lot of people to help you to solve, such ability for your learning,

CodePudding user response:

Learn well can go how2j. Cn first under study
  • Related