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 ",." Example "3,5". You won't call these in your code, but it is a best practice to override them and provide a meaningful implementation. No other methods are necessary, and no other methods should be provided. For this stage of the assignment, you will need to include the following in your project report: - A UML class diagram for BoardPosition Additionally, you will make a code file for BoardPosition called BoardPosition.java. This code file will just be an outline for the eventual code file. It should include the signature, Javadoc comments, and contracts for all methods, but you do not need to write the code for each method yet. Because of this, your code will not compile yet. You do not need to create activity diagrams for the methods in BoardPosition.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!