|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.columbia.cs.cs1007.company.Person
edu.columbia.cs.cs1007.company.Employee
edu.columbia.cs.cs1007.company.Manager
edu.columbia.cs.cs1007.company.President
public class President
A class that represents the president of a company.
| Field Summary |
|---|
| Fields inherited from class edu.columbia.cs.cs1007.company.Manager |
|---|
_reports, _title |
| Fields inherited from class edu.columbia.cs.cs1007.company.Employee |
|---|
_company, _manager |
| Constructor Summary | |
|---|---|
President(Person person,
Company company,
double salary)
Constructor: the President has no Manager |
|
| Method Summary | |
|---|---|
Manager |
hire(Person person,
double salary)
This method overrides Manager.hire(): a President only hires Managers, not regular employees. |
| Methods inherited from class edu.columbia.cs.cs1007.company.Manager |
|---|
delegateWork, doWork, fire, giveRaise, toString |
| Methods inherited from class edu.columbia.cs.cs1007.company.Employee |
|---|
equals, getRaise, getSalary, getStartDate, hasManager |
| Methods inherited from class edu.columbia.cs.cs1007.company.Person |
|---|
main, nameToString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public President(Person person,
Company company,
double salary)
person - company - salary - | Method Detail |
|---|
public Manager hire(Person person,
double salary)
hire in class Managerperson - salary -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||