?? a.java
字號:
class A{
int i=256,d=64;
static int k=32;
final double e=2.71;
}
class B extends A{
public char j='x';
final double k=5;
static double e=32l;
void show(){System.out.println(i+" "+j+" "+k+" "+e);}
void showA(){System.out.println(super.i+" "+A.k+" "+super.e);
}
}
class Exam6_19{
public static void main(String args[]){
B sb=new B();
System.out.println ("子類中可以直接引用的成員變量");
sb.show();
System.out.println("被隱藏的父類成員變量");
sb.showA();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -