This happens because you only set the colour in one of your constructors. So when you create an object such as cir2
, using the second constructor, the colour doesn't get set.
To fix this, add a line to the second constructor to set the colour. Maybe it could be like this.
public Circle(double newRadius)
{
radius = newRadius;
color = "blue";
}