-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathF1Model.java
More file actions
56 lines (35 loc) · 872 Bytes
/
Copy pathF1Model.java
File metadata and controls
56 lines (35 loc) · 872 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.f1drivers.projects;
public class F1Model {
private String DriverName;
private String CarName;
private int Trophies;
public F1Model() {
}
public F1Model(String DriverName,String CarName,int Trophies ) {
this.DriverName=DriverName;
this.CarName=CarName;
this.Trophies=Trophies;
}
public String getDriverName() {
return DriverName;
}
public void setDriverName(String driverName) {
DriverName = driverName;
}
public String getCarName() {
return CarName;
}
public void setCarName(String carName) {
CarName = carName;
}
public int getTrophies() {
return Trophies;
}
public void setTrophies(int trophies) {
Trophies = trophies;
}
@Override
public String toString() {
return "F1Model [DriverName=" + DriverName + ", CarName=" + CarName + ", Trophies=" + Trophies + "]";
}
}