public static void Main()
Console.WriteLine("Hello World");
Rectangle r = new Rectangle
Console.WriteLine($"{r}");
P3 = new Point(){X=10, Y=12};
public Point P1 { get; set; }
public Point P2 { get; set; }
public Point P3 { get; set; }
public override string ToString(){
return string.Format("P1: {0}, P2: {1}, P3: {2}", P1, P2, P3);
public int X { get; set; }
public int Y { get; set; }
public override string ToString(){
return string.Format("{{X= {0}, Y= {1}}}", X, Y);