Inconsistent accessibility: Base class is less accessible than parent class. The error is coming on the base classes Circle and Oval. I think there is no issue of the curly brackets. How can I resolve?
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();
}
}
}