-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBMWCarModelClass.java
More file actions
100 lines (75 loc) · 2.06 KB
/
Copy pathBMWCarModelClass.java
File metadata and controls
100 lines (75 loc) · 2.06 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package Model;
public class BMWCarModelClass extends CarSuperClass{
private String Series;
private String BodyColor;
private BMWWheels WheelType;
private double Cost;
private double Power;
private int DrivingPerformance;
private double EnergyConsumption;
public String getSeries() {
return Series;
}
public void setSeries(String series) {
Series = series;
}
public String getBodyColor() {
return BodyColor;
}
public void setBodyColor(String bodyColor) {
BodyColor = bodyColor;
}
public BMWWheels getWheelType() {
return WheelType;
}
public void setWheelType(BMWWheels wheelType) {
WheelType = wheelType;
}
public double getCost() {
return Cost;
}
public void setCost(double cost) {
Cost = cost;
}
public double getPower() {
return Power;
}
public void setPower(double power) {
Power = power;
}
public int getDrivingPerformance() {
return DrivingPerformance;
}
public void setDrivingPerformance(int drivingPerformance) {
DrivingPerformance = drivingPerformance;
}
public double getEnergyConsumption() {
return EnergyConsumption;
}
public void setEnergyConsumption(double energyConsumption) {
EnergyConsumption = energyConsumption;
}
public class BMWWheels{
public int wheelInch;
public String wheelColorType;
public String buffType;
public int getWheelInch() {
return wheelInch;
}
public void setWheelInch(int wheelInch) {
this.wheelInch = wheelInch;
}
public String getWheelColorType() {
return wheelColorType;
}
public void setWheelColorType(String wheelColorType) {
this.wheelColorType = wheelColorType;
}
public String getBuffType() {
return buffType;
}
public void setBuffType(String buffType) {
this.buffType = buffType;
}
}
}