For my project I have to modify this method:
/**
* Determines if this position equals the specified position
*
* @return true of this position and the specified position have the same row
* and column value
*/
@Override
public boolean equals(Object pos) {
return false;
}
How would I fix this? I know to modify the code, but I'm having issues with understanding how to deal with 'pos' being an object.
In the Position class there is two methods called 'getRow' and 'getCol.' How could I do this?