public static void Main()
Rectangle rect = new Rectangle(10,20);
Console.WriteLine("Width = {0}, Length = {1}, Area = {2}", rect.Width, rect.Length, rect.GetArea());
rect.changePolygonLength(33);
Console.WriteLine("Width = {0}, Length = {1}, Area = {2}", rect.Width, rect.Length, rect.GetArea());
public double Length{get; protected set;}
public double Width {get; protected set;}
public void changePolygonLength(double newLength)
public Rectangle(double length, double width)