Class Point
The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.
Constructor Attributes | Constructor Name and Description |
---|---|
Point()
Constructor.
|
Field Attributes | Field Name and Description |
---|---|
The horizontal coordinate of the point.
|
|
The vertical coordinate of the point.
|
Method Attributes | Method Name and Description |
---|---|
clone()
Creates a copy of this Point object.
|
|
toString()
Returns a string that contains the values of the x and y coordinates.
|
Field Detail
x
The horizontal coordinate of the point.
y
The vertical coordinate of the point.
Method Detail
clone()
Creates a copy of this Point object.
toString()
Returns a string that contains the values of the x and y coordinates.