1 25 26 package org.objectweb.speedo.tutorial.pobjects.additional.detach; 27 28 31 public class Address { 32 33 private String street; 34 private String zipCode; 35 private String city; 36 37 public Address(String street, String zipCode, String city) { 38 this.street =street; 39 this.zipCode = zipCode; 40 this.city = city; 41 } 42 43 public String getCity() { 44 return city; 45 } 46 public void setCity(String city) { 47 this.city = city; 48 } 49 public String getStreet() { 50 return street; 51 } 52 public void setStreet(String street) { 53 this.street = street; 54 } 55 public String getZipCode() { 56 return zipCode; 57 } 58 public void setZipCode(String zipCode) { 59 this.zipCode = zipCode; 60 } 61 62 public String toString(){ 63 return street + ", " + zipCode + ", " + city; 64 } 65 } 66 | Popular Tags |