Class Person

java.lang.Object
  extended by Person

public class Person
extends Object

Class that represents information about a person

Author:
Barb Ericson

Constructor Summary
Person()
          No-arg constructor.
Person(int id, String firstName, String lastName, Picture picture, int age)
          Constructor that takes the first name, last name, picture and age
Person(String firstName, String lastName)
          Constructor that takes a person's first and last name
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Person

public Person()
No-arg constructor. All fields have their default values


Person

public Person(String firstName,
              String lastName)
Constructor that takes a person's first and last name

Parameters:
firstName - the first name for this person
lastName - the last name for this person

Person

public Person(int id,
              String firstName,
              String lastName,
              Picture picture,
              int age)
Constructor that takes the first name, last name, picture and age

Parameters:
firstName - the first name for this person
lastName - the last name for this person
picture - a picture of this person
age - the age of this person