Create a derived class inherited from the predefined grammar class.
创建一个从预定义grammar类继承而来的派生类。
Food order is another abstract class inherited by the three food types actual order classes: Doughnut, Pasty, and IcedBun.
而Food Order则是由这三种食品类型实际订单类(Doughnut、Pasty和IcedBun)继承的另一个抽象类。
To model inheritance, use the generalization relationship provided by the UML modeling palette, which is drawn from the inherited class to the base class.
要建模继承,可以利用由uml建模面板提供的一般化关系,它是从继承类到基础类而绘制出来的。
应用推荐