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