1 package invoice; 2 3 6 public class Address { 7 private String name = "azerty"; 8 private String street; 9 private String zip; 10 private String town; 11 private String country; 12 13 public Address() { 14 } 15 16 public Address(String name, 17 String street, 18 String zip, 19 String town, 20 String country) { 21 this.name = name; 22 this.street = street; 23 this.zip = zip; 24 this.town = town; 25 this.country = country; 26 } 27 28 public String toString() { 29 return "name:" + name + " /street:" + street + " /zip:" 30 + zip + " /town:" + town + " /country:" + country; 31 } 32 33 public String getName() { 34 return name; 35 } 36 37 public void setName(String name) { 38 this.name = name; 39 } 40 41 public String getStreet() { 42 return street; 43 } 44 45 public void setStreet(String street) { 46 this.street = street; 47 } 48 49 public String getZip() { 50 return zip; 51 } 52 53 public void setZip(String zip) { 54 this.zip = zip; 55 } 56 57 public String getTown() { 58 return town; 59 } 60 61 public void setTown(String town) { 62 this.town = town; 63 } 64 65 public String getCountry() { 66 return country; 67 } 68 69 public void setCountry(String country) { 70 this.country = country; 71 } 72 } 73 | Popular Tags |