Create a derived class inherited from the predefined grammar class.
创建一个从预定义grammar类继承而来的派生类。
Suppose you have a derived class D whose base class B has implemented some interfaces.
假设有个类型D,它的基类B实现了某些接口。
Setting them again for each derived class is a waste, since they would be available anyway by inheritance.
为每个派生类再次设置这些属性是一种浪费,因为通过继承它们就会拥有这些属性。
应用推荐