previous | start | next

## Object References

- Object variable holds a reference

      Greeter worldGreeter = new Greeter("World");

- Can have multiple references to the same object

      Greeter anotherGreeter = worldGreeter;

- After applying mutator method, all references access modified object

      anotherGreeter.setName("Dave");
      // now worldGreeter.sayHello() returns "Hello, Dave!"

previous | start | next