Question: **Please help ** Complete Javadoc + contracts for BoardPosition. BoardPosition.java This class will be used to keep track of an individual cell for a board.
**Please help **
Complete Javadoc + contracts for BoardPosition.
BoardPosition.java This class will be used to keep track of an individual cell for a board. BoardPosition will have variables to represent the Row position and the Column position. There will only be one constructor for the class, which will take in an int for the Row position and an int for the Column position. After the constructor has been called, there will be no other way to change any fields through any setter methods. Other methods that will be necessary: public int getRow(){ //returns the row }
public int getColumn(){ //returns the column } You must also override the equals() method inherited from the Object class. Two BoardPositions are equal if they have the same row and column. You should override the toString() method to create a string in the following format "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
