Question: pls help - Write a class called Point class. Include the followings in your class definition: - a method show to display the coordinates of
- Write a class called Point class. Include the followings in your class definition: - a method show to display the coordinates of the point - a method move to change these coordinates. - a method dist that computes the distance between 2 points. Note: the distance between 2 points A(x0,y0) and B(x1,y1) can be compute d(AB)=(x1x0))2+(y1y0)2 - The screenshot in the next slide provides an example of the expected behavior of objects belonging to this class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
