class TestShowSalary { public static void main(String[] args) { ShowSalary salary1 = new ShowSalary(); ShowSalary salary2 = new ShowSalary(); // System.out.println("From salary1, it is " + salary1.previousSalary); salary2.previousSalary = 300; System.out.println("After salary2 changed it, it is " + salary1.previousSalary); } }