深入理解static关键字

1 class A{ 2 public int i = 10; 3 public void show(){ 4 System.out.printf("%d",i); 5 } 6 } 7 8 class M{ 9 public static void main(String[] args){ 10 A a1 = new
相关文章
相关标签/搜索