We want to write a class Rectangle, which has width and height as its data and a method area that computes the area.
我们要来定义一个带有带有高和宽的矩形,并且要提供一个计算其面积的area方法。
We want to write a class Rectangle, which has width and height as its data and a method area that computes the area.
我们要来定义一个带有带有高和宽的矩形,并且要提供一个计算其面积的area方法。
应用推荐