Create a derived class inherited from the predefined grammar class.
创建一个从预定义grammar类继承而来的派生类。
Setting them again for each derived class is a waste, since they would be available anyway by inheritance.
为每个派生类再次设置这些属性是一种浪费,因为通过继承它们就会拥有这些属性。
Since this interface is tied directly to the toolbox, it's handy to just implement this interface in the TreeView-derived class.
由于该接口被直接绑定到工具箱,所以在派生自TreeView的类中实现该接口十分方便。
Since both the base class and derived class have the same interface, there must be some implementation to go along with that interface.
因为基类和衍生类拥有相同的接口,因此这个接口必须要有必要的实现。
Can derived class have two sets of virtual functions?
派生类可以有两套虚函数?
When overridden in a derived class, another character might be returned.
当在派生类中重写后,可能会返回另一个字符。
How do I override a field in a base class with a property in a derived class?
我如何在派生类中重写基类的属性字段?
All abstract members from the base class are implemented in the derived class.
基类中的所有抽象成员都在派生类中实现。
When overridden in a derived class, sets the encoder back to its initial state.
在派生类中重写时,将编码器设置回它的初始状态。
When overridden in a derived class, gets the hash code for the specified object.
当在派生类中重写时,将获取指定对象的哈希代码。
When overridden in a derived class, tests whether a message satisfies the filter criteria.
在派生类中被重写时,测试消息是否满足筛选器的条件。
When overridden in a derived class, returns a normalized copy of the object on which it is called.
当在派生类中重写时,返回在其上调用它的对象的正常化副本。
In that case, a derived class can change the interface behavior by overriding the virtual members.
这种情况下派生的类通过重写虚拟成员可以更改接口行为。
When overridden in a derived class, gets the value indicating whether this group is the default group.
在派生类中重写后,获取一个值,该值指示组是否是默认组。
As a result, you can exactly substitute an object of the derived class for an object of the base class.
结果是你可以用衍生类的对象替代基类的对象。
When overridden in a derived class, tests whether a buffered message satisfies the criteria of a filter.
在派生类中被重写时,测试缓冲的消息是否满足筛选器的条件。
Any design that requires code changes to handle the introduction of a newly derived class is a bad design.
如果引入新的派生类时,需要修改基类代码,那么这就不是一个好的设计。
When overridden in a derived class, determines whether the specified date in the specified era is a leap day.
当在衍生类别中覆写时,判断指定纪元中的指定日期是否为闰日。
If a class method is called for a derived class, the derived class object is passed as the implied first argument.
如一个类方法被派生类调用,派生类对象将被隐含的做为第一个参数传递。
The functionality of this method is unsupported in the base class and must be implemented in a derived class instead.
此方法的功能在基类中不受支持,而必须在派生类中实现。
When overridden in a derived class, tests whether a message or a buffered message satisfies the criteria of a filter.
在派生类中被重写时,测试消息或缓冲的消息是否满足筛选器的条件。
Dynamic binding lets the compiler determine at run time whether to use a function defined in the base or derived class.
动态绑定使编译器能够在运行时决定是使用基类中定义的函数还是派生类中定义的函数。
If they are redefined in a derived class, it is impossible for the derived class to call the base class implementation.
如果在派生类中重新定义成员,则派生类不能调用基类实现。
Gets the name used to identify this collection of elements in the configuration file when overridden in a derived class.
获取在派生的类中重写时用于标识配置文件中此元素集合的名称。
A name can be hidden by an explicit declaration of that same name in a nested declarative region or derived class (10.2).
名字被嵌套的声明区域或派生类(10.2)中相同名字的显式声明所隐藏。
I would assume they would simply call the base-class destructor, then deallocate the memory (for the entire derived class).
我假设他们将简单地调用基类析构函数,然后释放内存(对于整个派生类)。
However, when we compare two derived objects, we want to compare data members that might be particular to that derived class.
但是,当比较两个派生类对象的时候,我们希望比较可能特定于派生类的数据成员。
This method can be implemented in a derived class to customize the initialization of the component that this designer is designing.
此方法可以在派生类中实现,以自定义此设计器所设计的组件的初始化。
Programs must use memory and time to construct fields inherited from a base class even when the derived class makes no use of them.
程序必须花费内存和时间来构造从基类继承的域,即使导出类根本不使用它们。
应用推荐