|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--Opus5.Person
Records some basic information about a person.
| Field Summary | |
int |
female
Sex: female |
int |
male
Sex: male |
protected java.lang.String |
name
The name of this person. |
protected int |
sex
The sex of this person. |
| Constructor Summary | |
Person(java.lang.String name,
int sex)
Constructs a Person with the specified name and sex. |
|
| Method Summary | |
java.lang.String |
toString()
Returns the name of this person. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final int male
public final int female
protected java.lang.String name
protected int sex
| Constructor Detail |
public Person(java.lang.String name,
int sex)
Person with the specified name and sex.name - The name of this person.sex - The sex of this person.| Method Detail |
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||