using System;

问题描述:

using System;
class Point
{
\x05public int x,y;
\x05public Point()
\x05{
\x05\x05x = 0;
\x05\x05y = 0;
\x05}
\x05public Point(int x,int y)
\x05{
\x05\x05this.x=x;this.y=y;//
\x05}
\x05public override string ToString()
\x05{
\x05\x05return(String.Format("({0},{1})",x,y));
\x05}
}
class MainClass
{
\x05static void Main()
\x05{
\x05\x05Point p1 = new Point();
\x05\x05Point p2 = new Point(5,3);
\x05\x05Console.WriteLine("Point 1的坐标为{0}",p1);
\x05\x05Console.WriteLine("Point 2的坐标为{0}",p2);
\x05}
}

    using System;class Point//创建一个Point类{public int x, y;//声明xy两个工友字段public Point() //无参数构造函数{x = 0;//在无参数构造...