📄 ostrich.java
字号:
public class Ostrich extends Bird
{
static private int count;
public Ostrich()
{
setLegs(2);
setKind("Ostrich");
count++;
move();
this.move();
super.move();
}
public void move()
{
System.out.println("Running");
}
public void hideHead()
{
System.out.println("Hidding the head...");
}
static public int getCount()
{
return count;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -