static void Main(String[] args) { Tabletop t = new Tabletop(4.5, 7.5); //类可以赋值,因为构造了构造函数。 t.Display(); Console.ReadLine(); }
static void Main(string[] args) { Tabletop t = new Tabletop(4.5, 7.5); t.Display(); Console.ReadKey(); }