Shape类别将拥有一个方法calculateArea()用来计算面积, 由于Shape为抽象类别(abstraction class),并不实作calculateArea()。之后的文章, 我将加入Circle及Rectangle,他们将继承自Shape并拥有各自的面积计算方法。
基于12个网页-相关网页
Find an abstraction class from Step 2 in which you are interested.
从您感兴趣的第二步中找出一个抽象类。
Show an abstraction class diagram by selecting a class from the abstraction list.
从抽象结构表中选择一个类从而显示其抽象类图。
The classes except for the discovered abstraction class do not have attributes and operations.
除去被发现的抽象类之外,其他类没有属性及操作。
应用推荐