?? son.java
字號:
class Father
{
String str="這是父類";
public void outPut()
{
System.out.println(str);
}
public void eatFood()
{
System.out.println("I'm eatting!!!");
}
}
public class Son extends Father {
public void eatFood()
{
System.out.println("I'm eatting foods~~~");
}
public static void main(String[] args) {
Son tom = new Son();
tom.outPut();
tom.eatFood();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -