public class Coord
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
c
has two fileds of integer r, c to create a coordinate on the map
|
int |
r
has two fileds of integer r, c to create a coordinate on the map
|
Constructor and Description |
---|
Coord(int r,
int c)
constructor Coord that constract the object Coord.
|
Modifier and Type | Method and Description |
---|---|
Coord |
copy()
The copy method just creates a new copy of Coord object with same values.
|
boolean |
equals(java.lang.Object o)
public boolean equals(Object o).
|
java.lang.String |
toString()
Return a string representation of Coord object
|
public final int r
public final int c
public Coord(int r, int c)
public Coord copy()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- is the object that we compare too.public java.lang.String toString()
toString
in class java.lang.Object