forked from csc301-fall2014/BuilderExample
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCanadianAddress.java
More file actions
51 lines (36 loc) · 819 Bytes
/
CanadianAddress.java
File metadata and controls
51 lines (36 loc) · 819 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
package csc301.builderExample;
/**
* Starter code.
* Some of the implementation is missing.
*/
public class CanadianAddress {
// Question: Why are we using String for apartment and street number?
private String apartmentNumber;
private String streetNumber;
private String streetName;
private String streetType;
private String city;
private String province;
private String postalCode;
public String getApartmentNumber() {
return apartmentNumber;
}
public String getStreetNumber() {
return streetNumber;
}
public String getStreetName() {
return streetName;
}
public String getStreetType() {
return streetType;
}
public String getCity() {
return city;
}
public String getProvince() {
return province;
}
public String getPostalCode() {
return postalCode;
}
}