你的Circle类只有public Circle(double r):base(r,0){}
这个构造,所以必须要参数
Shape里
public Shape(double x,double y)
{
this.x=0;//这里应该是this.x=x;
this.y=0;//这里应该是this.y=y;
}
public abstract double Area();
这个构造,所以必须要参数
Shape里
public Shape(double x,double y)
{
this.x=0;//这里应该是this.x=x;
this.y=0;//这里应该是this.y=y;
}
public abstract double Area();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货