The following code shows a test program that creates a number of Shape-derived objects and prints out their areas.

  • 下面的代码演示一个测试程序,它创建若干Shape派生对象,并输出它们的面积。
目录 查词历史