0
/ 50
Below is a ChessPiece class that we will be using as a superclass for a Queen subclass.
public class ChessPiece { // the location of this...
Below is a ChessPiece class that we will be using as a superclass
for a Queen subclass.
public class ChessPiece
{
// the location of this chess piece on the board
private int row;
private int column;
public ChessPiece(int r, int c)
{
row = r;
column = c;
}
}
Below, write the declaration for the Queen subclass so that it inherits
from ChessPiece. Do not write any methods or
constructors, just the class declaration with empty braces.
Your feedback will appear here when you check your answer.