You are writing a new class called King that is a subclass of ChessPiece, and it is time to write the constructor. The superclass ...
X865: King subclass constructor
You are writing a new class called King
that is a subclass of ChessPiece, and it is time to write
the constructor. The superclass ChessPiece has a
constructor that takes two integer values to indicate the
piece's initial row and column position, in that order.
Write a constructor for King that takes two parameters
for the row and column, and implement it with an appropriate
call to super().
Do not write the whole class, just the constructor itself.
Your Answer:
Feedback
Your feedback will appear here when you check your answer.