design a class called point

i dont understant exactly what is required of me to do and i don know how to go about in doing it. it would be great help if someone helped me. its a java program. c++ is also ok if one gave me an example of something like it or showed me how to go about it.

Design a class called Point which consist of data members and a set of methods that manipulate these data members. these mehods Initialis a points coordinates, Move a point, Display a points coordinates, and Calculate the distance from the origin. this distance is determined by pythagoras's theorem(squareroot of Xsquared and Y squared), where x and y are the points coordinates. you can use the following methods defined in the Math class to assist you in your calculations:
1. double pow(double,double) which returns the value of the first argument raised to the power of the second
2.double sqrt(double) which returns the squareroot of the argument.
WRITE A main() METHOD WHICH DECLARES A POINT OBJECT AND CALCULATES ITS DISTANCE FROM THE ORIGIN.
Topic archived. No new replies allowed.