Look at the API of the Point class and find out how to construct a Point object.

Question:

Look at the API of the Point class and find out how to construct a Point object. In a PointTester program, construct two points with coordinates (3, 4) and (–3, –4). Find the distance between them, using the distance method. Print the distance, as well as the expected value. (Draw a sketch on graph paper to find the value you will expect.)

Step by Step Answer:

Related Book For  answer-question
Question Posted: