public override string ToString() {
return "[" + X + "," + Y + "]";
}
Point p1 = new Point(3,5)
Console.WriteLine(p1); // [3,5]