forked from DreamCats/java-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCar.java
More file actions
39 lines (29 loc) · 612 Bytes
/
Car.java
File metadata and controls
39 lines (29 loc) · 612 Bytes
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
/**
* @program SpringBooks
* @description: Car
* @author: mf
* @create: 2020/02/04 01:58
*/
public class Car {
private String name;
private Wheel wheel;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Wheel getWheel() {
return wheel;
}
public void setWheel(Wheel wheel) {
this.wheel = wheel;
}
@Override
public String toString() {
return "Car{" +
"name='" + name + '\'' +
", wheel=" + wheel +
'}';
}
}