📄 y.java
字号:
class X {
public X() {
System.out.println( "Constructing X" );
f();
}
protected void f() {
System.out.println( "X.f()" );
}
protected void g() {
System.out.println( "X.g()" );
}
}
public class Y extends X {
public Y() {
System.out.println( "Constructing Y" );
f();
}
protected void f() {
System.out.println( "Y.f()" );
}
public static void main( String[] args ) {
new Y();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -