案例:
内存图:
两个对象引用只想了同一个对象空间
System.out.println(owe.brand); System.out.println(owe.price); System.out.println(owe.color); System.out.println("======="); owe.brand = "三星"; owe.price = 5999.0; owe.color = "蓝色"; System.out.println(owe.brand); System.out.println(owe.price); System.out.println(owe.color); System.out.println("======="); owe.call("欧巴"); owe.sendMessage();