Skip to content

Instantly share code, notes, and snippets.

@develodroid
Last active July 25, 2016 16:11
Show Gist options
  • Save develodroid/9dc01bd4a8fbe1da4fa12b02981e5410 to your computer and use it in GitHub Desktop.
Save develodroid/9dc01bd4a8fbe1da4fa12b02981e5410 to your computer and use it in GitHub Desktop.
public class Person {
private String id;
private String name;
private String surName;
private String address;
private int zipCode;
private int phone;
public Person(String id, String name, String surName, String address, int zipCode, int phone) {
this.id = id;
this.name = name;
this.surName = surName;
this.address = address;
this.zipCode = zipCode;
this.phone = phone;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSurName() {
return surName;
}
public void setSurName(String surName) {
this.surName = surName;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public int getZipCode() {
return zipCode;
}
public void setZipCode(int zipCode) {
this.zipCode = zipCode;
}
public int getPhone() {
return phone;
}
public void setPhone(int phone) {
this.phone = phone;
}
@Override
public String toString() {
return "Person{" +
"phone=" + phone +
", zipCode=" + zipCode +
", address='" + address + '\'' +
", surName='" + surName + '\'' +
", name='" + name + '\'' +
", id='" + id + '\'' +
'}';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment