class Test{
public void a(Test test){ }
public static void main (String args[]){
Test y = new Test();
Object x= new Test();
y.a(x);
}
}
把x传入a方法时究竟发生了什么?
public void a(Test test){ }
public static void main (String args[]){
Test y = new Test();
Object x= new Test();
y.a(x);
}
}
把x传入a方法时究竟发生了什么?