【发布时间】:2018-12-15 14:59:57
【问题描述】:
可访问性不一致:基类的可访问性不如父类。 错误出现在基类 Circle 和 Oval 上。我认为大括号没有问题。我该如何解决?
namespace CheckingPolymor
{
class Shape
{
int width;
int height;
string color;
public virtual void Draw()
{
}
}
public class Circle: Shape
{
public override void Draw()
{
base.Draw();
}
}
public class Oval: Shape
{
public override void Draw()
{
base.Draw();
}
}
}
【问题讨论】:
-
你能分享一下确切的错误吗?
-
公共或内部类 Shape
标签: c# html asp.net asp.net-mvc