class CPoint
{
#region fields
int x = 60;
int y = 75;
#endregion #region properties
public int X
{
get { return x; }
set { x = value; }
}
public int Y
{
get { return y; }
set { y = value; }
}
#endregion #region construntors
public CPoint()
{
}
public CPoint(int _x,int _y)
{
x = _x;
y = _y;
}
#endregion #region methods
public void Display()
{
MessageBox.Show("x:" + this.X + " ,y:" + this.Y);
} public void Setpoint(int _x, int _y)
{
x = _x;
y = _y;
}
#endregion
}
{
#region fields
int x = 60;
int y = 75;
#endregion #region properties
public int X
{
get { return x; }
set { x = value; }
}
public int Y
{
get { return y; }
set { y = value; }
}
#endregion #region construntors
public CPoint()
{
}
public CPoint(int _x,int _y)
{
x = _x;
y = _y;
}
#endregion #region methods
public void Display()
{
MessageBox.Show("x:" + this.X + " ,y:" + this.Y);
} public void Setpoint(int _x, int _y)
{
x = _x;
y = _y;
}
#endregion
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货