|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEmployee
public class Employee
Constructor Summary | |
---|---|
Employee()
Creates an employee with name "Fred Smith" and salary 40000. |
|
Employee(java.lang.String name,
int salary)
Creates an employee with the given name and salary. |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the employee's name. |
int |
getSalary()
Returns the employee's salary. |
java.lang.String |
report()
Generates a report about this employee. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Employee(java.lang.String name, int salary)
name
- Employee's namesalary
- Employee's salarypublic Employee()
Method Detail |
---|
public java.lang.String getName()
public int getSalary()
public java.lang.String report()
report
in interface UniversityPeople
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |