-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDriver.java
More file actions
44 lines (39 loc) · 1.02 KB
/
Copy pathDriver.java
File metadata and controls
44 lines (39 loc) · 1.02 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
public class Driver {
public String license;
public String name;
public String street;
public String city;
public String province;
public Driver (){
this(" "," ", " ", " "," ");
}
public Driver( String license, String name, String street, String city, String province ){
this.license=license;
this.name=name;
this.street=street;
this.city=city;
this.province=province;
}
public String getLicense(){
return this.license;
}
public String getName(){
return this.name;
}
public String getStreet(){
return this.street;
}
public String getCity(){
return this.city;
}
public String getProvince(){
return this.province;
}
public void setLicense(String license){
this.license=license;
}
@Override
public String toString(){
return "" + getLicense() +" "+ getName() +" living at "+ getStreet() +","+ getCity() +","+ getProvince();
}
}