using System; public class Point { private int x; private int y; public Point(int x, int y) { this.x = x; this.y = y; } public bool IsSamePoint(Point other) { return x == other.x && y == other.y; } } public class Program { public static void Main() { Point first = new Point(3, 4); Point second = new Point(3, 4); Point third = first; Console.WriteLine($"first == second: {first == second}"); Console.WriteLine($"first == third: {first == third}"); Console.WriteLine($"Same values in first and second: {first.IsSamePoint(second)}"); Console.WriteLine($"Same values in first and third: {first.IsSamePoint(third)}"); } }