This example defines the Circle and Rectangle classes, which both inherit from the Shape class, and the Square class, which inherits from the Rectangle class.

 
  • 此示例定义Circle类和Rectangle类(它们是从Shape类继承的)以及Square类(它是从Rectangle类继承的)。
今日热词
目录 附录 查词历史