using System.Collections.Generic;
using System.Threading.Tasks;
static void Main(string[] args)
Shape shape = new Shape("red");
Console.WriteLine(shape.Display());
Circle circle = new Circle("green", 5);
Console.WriteLine(circle.Display());
Rectangle rectangle = new Rectangle("blue", 5, 10);
Console.WriteLine(rectangle.Display());
public Shape(string color)
public string Color { get; set; }
return $"Shape color is {Color}";
internal class Rectangle : Shape
public Rectangle(string color, int length, int width) : base(color)
public int Length { get; set; }
public int Width { get; set; }
return $"The rectangles length is {Length} and width is {Width}";
internal class Circle : Shape
public Circle(string color, int radius) : base(color)
public int Radius { get; set; }
return $"The circle radius is {Radius}";