I need to write the code for a Point class. However, there will be three files i
ID: 3918078 • Letter: I
Question
I need to write the code for a Point class. However, there will be three files involved, a header file Point.h, a Point.cpp and a PointTest.cpp. The Point class has eight members – two data fields (x and y) which should contain doubles, two constructors, a default constructor and a constructor with two parameters, and four functions, two accessor functions and two mutator functions. Members of the point class will be declared Public and Private as appropriate. The Point class will consist of a definition and an implementation file. Finally, the PointTest.cpp file will allow the user to instantiate two Point objects with user-selected values for x and y. The program will then calculate the distance between the two points.