test44.java~
来自「SCJP认证考试资料」· JAVA~ 代码 · 共 21 行
JAVA~
21 行
interface Inter{
}
class First implements Inter {
public Inter method1() {
System.out.println("Super");
return new First();
}
}
class Second extends First {
public First method1() {
System.out.println("sub");
return new Second();
}
}
class Test44 {
public static void main(String[] args) {
First first = new Second();
Inter first1 = first.method1();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?