📅  最后修改于: 2022-03-11 14:55:42.895000             🧑  作者: Mango
var student : Student = new Student("Jim"); // the "student" variable contains a reference to "Jim" var other : Student = student; // the "other" variable also contains a reference to "Jim" student.name = "James"; // rename the student trace("The students name is: " + student.name ); // prints James trace("The other name is: " + student.name ); // prints James as well other.name = "Joe"; trace("The students name is: " + student.name ); // Prints Joe!