public class Employee
extends java.lang.Object
Constructor | Description |
---|---|
Employee(java.lang.String setName,
java.lang.String setManager) |
Create a new employee.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getManager() |
Get the employee's manager's name.
|
java.lang.String |
getName() |
Get the employee's name.
|
void |
setManager(java.lang.String setManager) |
Set the employee's manager's name.
|
void |
setName(java.lang.String setName) |
Set the employee's name.
|
public Employee(java.lang.String setName, java.lang.String setManager)
setName
- the new employee's namesetManager
- the new employee's managerpublic java.lang.String getName()
public void setName(java.lang.String setName)
setName
- the name to setpublic java.lang.String getManager()
public void setManager(java.lang.String setManager)
setManager
- the manager's name to set