#include using namespace std; class Point { int x, y; public: Point(int a, int b) { x = a; y = b; } Point(Point &p) { x = p.x; y = p.y; } void show() { cout << "(" << x << ", " << y << ")" << endl; } ~Point() { cout << "Destructor" << endl; } }; int main() { Point p1(2, 3); Point p2(p1); p1.show(); p2.show(); return 0; }