是不是用
public Student(String name)
{
this("s", "");
}
生成了一个新的对象,然后句柄tom不再指向
Student tom = new Student("Tom");
转而指向新生成的这个对象?
是不是用
public Student(String name)
{
this("s", "");
}
生成了一个新的对象,然后句柄tom不再指向
Student tom = new Student("Tom");
转而指向新生成的这个对象?