public static void Main()
var rect = new Rectangle(3, 8);
GrowWidthBy5AndOutputArea(rect);
GrowWidthBy5AndOutputArea(sq);
public static void GrowWidthBy5AndOutputArea(Rectangle r)
Console.WriteLine("The area is now {0}", r.GetArea());
public virtual int Length { get; set; }
public virtual int Width { get; set; }
public Rectangle(int length, int width)
public class Square : Rectangle
public override int Length
public override int Width