Variables are Labels

  • Variables "label" a piece of data
  • This means that you can update one object from two different variables
Employee ryan = new Employee("Ryan", 26, "Developer", "abc123");
Employee evil = ryan;
evil.setIsEvilTwin(true);

13 / 22