public Rectangle(double l, double w)
Console.WriteLine("Length: {0}", length);
Console.WriteLine("Width: {0}", width);
Console.WriteLine("Area: {0}", GetArea());
class Tabletop : Rectangle
public Tabletop(double l , double w) : base(l, w)
Console.WriteLine("cost: {0}", GetCost());
static void main(String[] args)
Tabletop t = new Tabletop()(4.5, 7.5);