Question: Below is a ChessPiece class that we will be using as a superclass for a Queen subclass. public class ChessPiece { / / the location
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 ChessPieceint r int c
row r;
column c;
Below, write a constructor for your Queen subclass the constructor only, not the complete class declaration The constructor should take both the row and column values as parameters and pass those values to the superclass constructor. Do not write any other methodsjust the constructor.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
