主题:还请高手指点一下c#问题
using System;
using System.Collections.Generic;
using System.Text;
namespace zuobiao
{
public class Point
{
private int x, y;
public Point()
{
}
public Point(int xValue, int yValue)
{
X = xValue;
Y = yValue;
}
public int X
{
get
{
return x;
}
set
{
x = value;
}
}
public int Y
{
get
{
return y;
}
set
{
y = value;
}
}
}
public override [color=FF00FF]string[/color] ToString()
{
return "["+x+","+y+"]";
}
}
[color=FF0000]错误1:应输入 class、delegate、enum、interface 或 struct[/color]
新手入门,
请教一下错误出在哪里了呢?
using System.Collections.Generic;
using System.Text;
namespace zuobiao
{
public class Point
{
private int x, y;
public Point()
{
}
public Point(int xValue, int yValue)
{
X = xValue;
Y = yValue;
}
public int X
{
get
{
return x;
}
set
{
x = value;
}
}
public int Y
{
get
{
return y;
}
set
{
y = value;
}
}
}
public override [color=FF00FF]string[/color] ToString()
{
return "["+x+","+y+"]";
}
}
[color=FF0000]错误1:应输入 class、delegate、enum、interface 或 struct[/color]
新手入门,
请教一下错误出在哪里了呢?