previous | start | next

## Sharing Mutable References

- References to immutable objects can be freely shared
- Don't share mutable references
- Example

      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;

      }

previous | start | next