📅  最后修改于: 2022-03-11 14:44:48.945000             🧑  作者: Mango
代码示例1
// Copy constructor
Point(const Point &p2) {x = p2.x; y = p2.y; }
int getX() { return x; }
int getY() { return y; }
};