FileDocCategorySizeDatePackage
Person.javaAPI DocExample886Sun Jul 20 19:04:18 BST 2003antipatterns.ejbs

Person.java

package antipatterns.ejbs;

import java.io.Serializable;

public class Person implements Serializable {

    private String lastName;
    private String firstName;
    private String phoneNumber;
    
    public Person() {
    }
    
    public Person(String first, String last, String phone) {
        setFirstName(first);
        setLastName(last);
        setPhoneNumber(phone);
    }
    
    public String getLastName() {
        return lastName;
    }
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
   
    public String getFirstName() {
        return firstName;
    }
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }
    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
    
}