public class Rectangle : Shape
rectstring = "The length of the figure is " + Length.ToString() + " while the width is " + Width.ToString();
public Rectangle(double a, double b)
public static void Main()
Rectangle rectangle1 = new Rectangle(3, 4);
Console.WriteLine("The length is: " + rectangle1.Length);
Console.WriteLine("The width is: " + rectangle1.Width);
Console.WriteLine("The area is: " + rectangle1.getArea());
Console.WriteLine(rectangle1.toString());
Console.WriteLine("The length is: " + rectangle1.Length);
Console.WriteLine("The width is: " + rectangle1.Width);
Console.WriteLine("The area is: " + rectangle1.getArea());
Console.WriteLine(rectangle1.toString());