2 // struct declaration and initialization
8 public Point(int p1
, int p2
)
17 public static void Main()
20 Point myPoint
= new Point();
21 Point yourPoint
= new Point(10,10);
24 Console
.Write("My Point: ");
25 Console
.WriteLine("x = {0}, y = {1}", myPoint
.x
, myPoint
.y
);
26 Console
.Write("Your Point: ");
27 Console
.WriteLine("x = {0}, y = {1}", yourPoint
.x
, yourPoint
.y
);