-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCar 2.java
More file actions
72 lines (55 loc) · 1.57 KB
/
Copy pathCar 2.java
File metadata and controls
72 lines (55 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package rawData;
import java.util.ArrayList;
import java.util.List;
public class Car {
private String model;
private int engineSpeed;
private int enginePower;
private int cargoWeight;
private String cargoType;
private List<Tire> tiresList;
public Car(String model,int engineSpeed,int enginePower,int cargoWeight,String cargoType,List<Tire> tiresList) {
this.model = model;
this.engineSpeed = engineSpeed;
this.enginePower = enginePower;
this.cargoWeight = cargoWeight;
this.cargoType = cargoType;
this.tiresList = tiresList;
}
public void setModel(String model) {
this.model = model;
}
public void setEngine(int engineSpeed) {
this.engineSpeed = engineSpeed;
}
public void setEnginePower(int enginePower) {
this.enginePower = enginePower;
}
public void setCargoWeight(int cargoWeight) {
this.cargoWeight = cargoWeight;
}
public void setCargoType(String cargoType) {
this.cargoType = cargoType;
}
public void setTiresList(ArrayList<Tire> tiresList) {
this.tiresList = tiresList;
}
public String getModel() {
return this.model;
}
public int getEngineSpeed() {
return this.engineSpeed;
}
public int getEnginePower() {
return this.enginePower;
}
public int getCargoWeight() {
return this.cargoWeight;
}
public String getCargoType() {
return this.cargoType;
}
public List<Tire> getTiresList() {
return this.tiresList;
}
}