public class Employee extends java.lang.Object implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private Employee |
buddy |
private java.lang.String |
name |
private double |
salary |
private static long |
serialVersionUID |
| 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() |
private static final long serialVersionUID
private java.lang.String name
private double salary
public Employee(java.lang.String name, double salary)
name - the employee namesalary - the employee salary