public static void Main4() { Point2D myPoint = new Point2D(); myPoint.X = 10; myPoint.Y = 20; Point2D anotherPoint = new Point2D(); anotherPoint.X = 5; anotherPoint.Y = 15; myPoint.AddPoint(anotherPoint); }