/* * To change this template, choose Tools | Templates * and open the template in the editor.

*/ package adressbook; /** * * @author MiThU */ public class PersonInfo { private String name,address,email; private int id, phone; // default constructor public PersonInfo() { name = ""; address = ""; email = ""; id = 0; phone = 0; } public PersonInfo(int id, String name, String address, int phone, String email) { this.id = id; this.name = name; this.address = address; this.phone = phone; this.email = email; } // param construcrtor with 4 values public PersonInfo(String name, String address, int phone, String email) { this.name = name; this.address = address; this.phone = phone; this.email = email; } // setters public void setId(int i) { id = i; } public void setName(String n) { name=n; } public void setAddress(String a) { address=a; } public void setPhone(int ph) {

} public String getName() { return name. } public String getAddress() { return address.phone=ph. } public String getEmail() { return email. } public int getPhone() { return phone. } // getters public int getId( ) { return id. } } . } public void setEmail(String e) { email=e.

Sign up to vote on this title
UsefulNot useful