|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.Person
university.Employee
university.Staff
public class Staff
Class for the staff of the university
Constructor Summary | |
---|---|
Staff(java.lang.String name,
Sex gender,
Address address,
Unit unit,
int salary,
StaffStatus status,
java.lang.String jobTitle)
Creates a new instance of Staff. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone a new object |
java.lang.String |
getJobTitle()
Returns the staffs job title. |
void |
setJobTitle(java.lang.String jobTitle)
Sets the staffs job title. |
java.lang.String |
toString()
Returns a String representation of the staff member. |
Methods inherited from class university.Employee |
---|
getSalary, setSalary |
Methods inherited from class university.Person |
---|
getAddress, getAffiliation, getGender, getID, getName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Staff(java.lang.String name, Sex gender, Address address, Unit unit, int salary, StaffStatus status, java.lang.String jobTitle)
name
- The name of the staff member.gender
- The geneder of the staff member.address
- The address of the staff member.salary
- The staffs salary.status
- Theather the staff member if part time of full time.jobTitle
- The staff members job title.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Employee
java.lang.CloneNotSupportedException
- Throws CloneNotSupportedExceptionpublic final java.lang.String getJobTitle()
public final void setJobTitle(java.lang.String jobTitle)
jobTitle
- the job title of the staff.public java.lang.String toString()
toString
in class Employee
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |