📄 interface3.java
字号:
interface Interface3MyInter1{
public void method1();
}
interface Interface3MyInter2{
public void method2();
}
class Interface3MyClass{
public void hi(){
System.out.println("你好");
}
}
public class Interface3 extends Interface3MyClass implements Interface3MyInter1, Interface3MyInter2{
public void method1(){
System.out.println("method1 override");
}
public void method2(){
System.out.println("method2 override");
}
public static void main(String[] args){
Interface3 ob=new Interface3();
ob.method1();
ob.method2();
ob.hi();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -