class Staff extends Person
Constructor and Description |
---|
Staff()
Create a staff member with default settings for detail information.
|
Staff(java.lang.String name,
int yearOfBirth,
java.lang.String roomNumber)
Create a staff member with given name, year of birth and room
number.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRoom()
Return the room number of this person.
|
void |
setRoom(java.lang.String newRoom)
Set a new room number for this person.
|
java.lang.String |
toString()
Return a string representation of this object.
|
getAddress, getName, getYearOfBirth, setAddress, setName, setYearOfBirth
Staff()
Staff(java.lang.String name, int yearOfBirth, java.lang.String roomNumber)