?? herihacy.java
字號:
//Herihacy.Java
//父接口
interface Parent
{
//父接口方法
int method1();
}
//子接口
interface Child extends Parent
{
//子接口方法
int method2();
}
public class Herihacy implements Child
{
//構(gòu)造方法
public Herihacy()
{
}
public int method1()
{
return 1;
}
public int method2()
{
return 1;
}
public static void main(String args[])
{
Herihacy aHerihacy = new Herihacy();
int a = aHerihacy.method1();
System.out.println("method1:"+a);
int b = aHerihacy.method2();
System.out.println("method2:"+b);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -