?? pr6204.java
字號:
class X{ public Y getY() { return new Y(1); } }class Y extends X{ int i; Y(int i) { this.i = i; } public Y getY() { return new Y(2); } }class A{ X x = new Y(-1); public X getX() { return x; }}public class PR6204 extends A{ public Y getY() { return super.getX().getY(); } public static void main(String[] args) { System.out.println (new PR6204().getY().i); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -