public class Text03 {
public int p = 10;
static int s = 10;
public static void main(String[] args) {
Text03 e = new Text03();
e.p = 100;
e.s = 33;
System.out.println(Text03.s);//输出33
System.out.println(e.p);//输出100
Text03 e1 = new Text03();
System.out.println(e1.p);//输出10
System.out.println(e1.s);//输出33
System.out.println(Text03.s);//输出33
e1.s = 44;
System.out.println(Text03.s);//输出44
System.out.println(e1.s);//输出44
System.out.println(Text03.s);//输出44
System.out.println(e.s);//44
}
添加回答
举报
0/150
提交
取消