static void Main(string[] args) { Table t = new Table(80, 120, "oak"); Leg l = new Leg(78, "silver"); t.SetLeg(l); LittleTable lt = new LittleTable(); lt.SetColor("dark brown"); }
static void Main() { Table myTable = new Table("red", 180, 120, "white", 20); Leg myLeg = new Leg(78, "silver"); myTable.SetLeg(myLeg); LittleTable lt = new LittleTable(); lt.SetColor("dark brown"); }