The following code shows three subclasses of Shape and how they override the Area property to provide their own implementation.

 
  • 下面的代码演示Shape的三个子类,并演示它们如何重写Area属性来提供自己的实现。
今日热词
目录 附录 查词历史