public class Employee { public boolean equals(Object otherObject) // not complete--see below { Employee other = (Employee)otherObject; return name.equals(other.name) && salary == other.salary; } ... }