?? mygolfball.java
字號(hào):
class MyGolfball extends Golfball
{
public final static byte TwoPiece = 0;
public final static byte ThreePiece = 1;
private byte ballConstruction;
public MyGolfball(String str, String mk,
int comp, byte construction)
{
super(str, mk, comp);
ballConstruction = construction;
}
public byte construction()
{
return ballConstruction;
}
public boolean equals(Object obj)
{
if (super.equals(obj))
{
MyGolfball gb = (MyGolfball)obj;
if (ballConstruction == gb.construction())
return true;
}
return false;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -