Challenge 4: Calculate Distance Between Points
In this exercise, you have to implement a class called Point which can be used to calculate distance between two points in x-y plane.
We'll cover the following...
Problem Statement
You have to implement a class called Point
that represents a specific point in the x-y plane. It should contain the following:
-
fields:
-
x
( integer type) -
y
( integer type)
-
-
methods:
-
default constructor that initializes the point at ...
-