[code]#include using namespace std;class Point { //Point 类的界说public: //外部接口 Point(int xx = 0, int yy = 0) { //构造函数 x = xx; y = yy; } Point(const Point &p); //拷贝构造函数 int getX() { return x; } int getY() { return y; }private: //私有数据 int x, y;};//成员函数的实现Point:oint(const Point &p) { x = p.x; y = p.y; cout