Read the provided code for the Point class that represents a point on a standard Cartesian plane. Then read the provided code in main.
Replace YOUR_CODE with code that will create a point named p1 at the location 0, 0.
#include <iostream>
using namespace std;
class Point {
private:
double x;
double y;
public:
Point() {
x = 0;
y = 0;
}
double getX() {
return x;
}
double getY() {
return y;
}
};
int main()
{
//Do not modify anything on or above the line below this
//YOUR_CODE_BELOW
//YOUR_CODE
double x, y;
Point p1(x, y);
//YOUR_CODE_ABOVE
//Do not modify anything on or below the line above this
cout << p1.getX() << " " << p1.getY() << endl;
}