package untitled20;
import java.io.Serializable;
public class text {
private int a;
public int getNum() {
return this.a;
}
public void setNum(int aa){
this.a = aa;
}
}
package untitled20;
import untitled20.text;
public class text2 {
public text2() {
text t = new text();
t.setNum(4);
}
}
package untitled20;
import untitled20.text;
public class Untitled1 {
public Untitled1() {
}
public static void main(String[] args) {
Untitled1 untitled1 = new Untitled1();
text t = new text();
System.out.println(t.getNum());
}
}
打印出来的值为什么是0啊??