package COM.odi.demo.newpeople2;

// Import the COM.odi package, which contains the API:
import COM.odi.*;

public
class Person2 {

  // Fields in the Person2 class:
  String name;
  int age;
  Person2 children[];

  // Constructor
  public Person2(String nameValue, int ageValue, 
    Person2 theChildren[]) {
    name = nameValue; 
    age = ageValue; 
    children = theChildren;
  }

  public String getName() { 
    return name; 
  }

  public void setName(String nameValue) { 
    name = nameValue; 
  }

  public int getAge() { 
    return age; 
  }

  public void setAge(int ageValue) { 
    age = ageValue; 
  }

  public Person2[] getChildren() { 
    return children; 
  }

  public void setChildren(Person2 theChildren[]) {
    children = theChildren;
  }
   
  // This class is never used as a persistent hash key.
  // So using the Object's hashCode is ok.
  public int hashCode() {
    return super.hashCode();
  }
}
