大家运行一下下面的代码,呵呵
public class 资讯 {
public int param;
public static void main(String[] args){
资讯 info=new 资讯();
info.setParam(800);
System.out.println(info.getParam());
}
public int getParam() {
return param;
}
public void setParam(int param) {
this.param = param;
}
}
public class 资讯 {
public int param;
public static void main(String[] args){
资讯 info=new 资讯();
info.setParam(800);
System.out.println(info.getParam());
}
public int getParam() {
return param;
}
public void setParam(int param) {
this.param = param;
}
}