私はこれで完全に途方に暮れています。これまでの手順とコードは次のとおりです。
import java.util.*;
abstract public class AbstractGamePiece
{
// These two constants define the Outlaws and Posse teams
static public final int PLAYER_OUTLAWS = 0;
static public final int PLAYER_POSSE = 1;
// These variables hold the piece's column and row index
protected int myCol;
protected int myRow;
// This variable indicates which team the piece belongs to
protected int myPlayerType;
// These two strings contain the piece's full name and first letter abbreviation
private String myAbbreviation;
private String myName;
// All derived classes will need to implement this method
abstract public boolean hasEscaped();
// Initialize the member variables with the provided data.
public AbstractGamePiece(String name, String abbreviation, int playerType)
{
}
}
私が助けを必要としているのは、public AbstractGamePiece(...) セクションの下でコードを完成させることです。