a class that represent a point in a Cartesian plain has two data members ,one to store the x axis and another the y axis value
1. write the class
2. add to the class a parametrized constructor that initializes two data members using the two data values passed as argument
3 write a function that receives as two points as arguments and returns the distance between the two points ( you need to know the mathematical formula of the Pythagorean theorem)
Comments
Leave a comment