KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > samples > bidbuy > Address


1 package samples.bidbuy;
2
3 public class Address {
4
5     // constructors
6

7     public Address() {};
8
9     public Address(String JavaDoc name, String JavaDoc address, String JavaDoc city, String JavaDoc state,
10                    String JavaDoc zipCode)
11     {
12          this.name=name;
13          this.address=address;
14          this.city=city;
15          this.state=state;
16          this.zipCode=zipCode;
17     }
18     
19     // properties
20

21     private String JavaDoc name;
22     public String JavaDoc getName() { return name; }
23     public void setName(String JavaDoc value) { name=value; }
24
25     private String JavaDoc address;
26     public String JavaDoc getAddress() { return address; }
27     public void setAddress(String JavaDoc value) { address=value; }
28
29     private String JavaDoc city;
30     public String JavaDoc getCity() { return city; }
31     public void setCity(String JavaDoc value) { city=value; }
32
33     private String JavaDoc state;
34     public String JavaDoc getState() { return state; }
35     public void setState(String JavaDoc value) { state=value; }
36
37     private String JavaDoc zipCode;
38     public String JavaDoc getZipCode() { return zipCode; }
39     public void setZipCode(String JavaDoc value) { zipCode=value; }
40 }
41
Popular Tags