SE450: Sharing Mutable References [20/57] |
class Employee
{
. . .
public String getName() { return name; }
public double getSalary() { return salary; }
public Date getHireDate() { return hireDate; }
private String name;
private double salary;
private Date hireDate;
}