using System; public class Point { private int x; private int y; public Point(int x, int y) { this.x = x; this.y = y; } public Point(Point other) { x = other.x; y = other.y; } public void SetX(int x) { this.x = x; } public override string ToString() { return $"({x}, {y})"; } } public class Program { public static void Main() { Point original = new Point(2, 5); Point sharedReference = original; Point copy = new Point(original); sharedReference.SetX(7); copy.SetX(9); Console.WriteLine($"Original: {original}"); Console.WriteLine($"Shared reference: {sharedReference}"); Console.WriteLine($"Copy: {copy}"); } }