class Point
{
int x,y;
Point(int a,int b)
{
x=a;
y=b;
}
void output()
{
System.out.println(x);
System.out.println(y);
}
public static void main(String[] args)
{
Point pt;
pt=new Point(3,4);
pt.output();
}
}
编译通过但是执行时出现Exception in thread "main" java.lang.NoClassDefFoundError:point(wrong name:Point)
的错误,为什么呢? |
|