public class Employee extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
Employee(java.lang.String name,
double salary)
Constructs an employee.
|
Modifier and Type | Method and Description |
---|---|
void |
setBuddy(Employee buddy)
Sets the buddy of this employee
|
java.lang.String |
toString() |
public Employee(java.lang.String name, double salary)
name
- the employee namesalary
- the employee salary