|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
This represents a human being.
A Person is a mutable type.
|
| Method Summary | |
Person[] |
parents()
returns a Person array, result[],
of length 2 such that each Person in
this.parents in result[i]
(where 0 <= i <= 1) |
void |
setSpouse(Person p)
sets this.spouse to p |
Person |
spouse()
returns this.spouse if present, or null
otherwise |
| Method Detail |
public Person spouse()
this.spouse if present, or null
otherwisepublic Person[] parents()
Person array, result[],
of length 2 such that each Person in
this.parents in result[i]
(where 0 <= i <= 1)public void setSpouse(Person p)
this.spousethis.spouse to p
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||