📜  java对象不能改变? - 打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:19.751000             🧑  作者: Mango

代码示例1
Foo foo1 = new Foo();
Foo foo2 = foo1;
foo1.someField = "changed";
System.out.println(foo2.someField) // "changed"