-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddress.java
79 lines (58 loc) · 1.64 KB
/
Address.java
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
public class Address {
private String rue ;
private String numero;
private String postCode;
private String commune;
private String pays;
public Address(){}
public Address(String rue,String numero, String postCode, String commune) {
this.setRue(rue);
this.setNumero(numero);
this.setPostCode(postCode);
this.setCommune(commune);
}
public Address(String rue,String numero, String postCode, String commune, String pays) {
this(rue,numero,postCode,commune);
this.setPays(pays);
}
public void setAddress(String rue, String numero, String postCode, String commune, String pays) {
this.setRue(rue);
this.setNumero(numero);
this.setPostCode(postCode);
this.setCommune(commune);
this.setPays(pays);
}
public String getRue() {
return rue;
}
public void setRue(String rue) {
this.rue = rue;
}
public String getNumero() {
return numero;
}
public void setNumero(String numero) {
this.numero = numero;
}
public String getPostCode() {
return postCode;
}
public void setPostCode(String postCode) {
this.postCode = postCode;
}
public String getCommune() {
return commune;
}
public void setCommune(String commune) {
this.commune = commune;
}
public String getPays() {
return pays;
}
public void setPays(String pays) {
this.pays = pays;
}
public String toString() {
return this.getRue()+", "+this.getNumero()+", "+this.getPostCode()+", "+this.getCommune()+", "+this.getPays();
}
}