|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.Person
university.Employee
public abstract class Employee
Abstract class for the employees of the university.
Constructor Summary | |
---|---|
Employee()
Creates a new instance of Employee. |
|
Employee(java.lang.String name,
Sex gender,
Address address,
Unit unit,
int salary)
Creates a new instance of Employee |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone a new object |
int |
getSalary()
Retruns the salary of the Employee. |
void |
setSalary(int salary)
Sets the Employee salary. |
java.lang.String |
toString()
Returns a String representation of the Employee. |
Methods inherited from class university.Person |
---|
getAddress, getAffiliation, getGender, getID, getName, setName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Employee()
public Employee(java.lang.String name, Sex gender, Address address, Unit unit, int salary)
name
- The name of the Employeegender
- The sex of the Employeeunit
- The Unit the Employee belong tosalary
- The salary of the EmployeeMethod Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Person
java.lang.CloneNotSupportedException
- Throws CloneNotSupportedExceptionpublic final int getSalary()
public final void setSalary(int salary)
salary
- The salary of the Employeepublic java.lang.String toString()
toString
in class Person
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |