# Class Point

java.lang.Object
Point

public class Point extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Point()`
  `Point(int x, int y)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `distanceFromOrigin()`
  `boolean`
  `equals(Object o)`
  `int`
  `getX()`
  `int`
  `getY()`
  `String`
  `toString()`
  `Point`
  `translate(int dx, int dy)`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Point

    public Point()

  - ### Point

    public Point(int x, int y)

- ## Method Details

  - ### distanceFromOrigin

    public double distanceFromOrigin()

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### getX

    public int getX()

  - ### getY

    public int getY()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### translate

    public Point translate(int dx, int dy)