X864: King default 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 default constructor (which does not take any parameters) that includes an appropriate super call to set the King's row to 1 and column to 5. Do not write the whole class, just the constructor itself.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.