Код: Выделить всё
public abstract class ChessPiece {
// ... some common fields
public abstract ChessPositionCoorinate getChessPositionCoorinate();
public abstract Colour getColour();
/**
* Provides the name of the chess piece.
*/
public abstract String getName();
}
Now, if we had the option to create an abstract static method like this:
Код: Выделить всё
public abstract class ChessPiece {
// ... some common fields
public abstract ChessPositionCoorinate getChessPositionCoorinate();
public abstract Colour getColour();
/**
* Provides the name of the chess piece.
*/
public static abstract String getName();
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... ds-in-java