Mixing strategies such as "Table per Subclass" embedded in "Table per class Hierarchy" so that you can take advantages of different strategies.
采用混合策略,例如“每个类层次一张表”中嵌入“每个子类一张表”,这样可以利用不同策略的优势。
The sample watchdog code (see Download) defines WatchedPeriodicThread as a subclass of PeriodicThread.
示例 watchdog代码(参见下载)定义WatchedPeriodicThread作为 PeriodicThread的子类。
The LzLayout class is a subclass of LzNode, which is responsible for laying out views.
LzLayout类是LzNode的子类,负责布置视图。
A WorkAdapter class is also included that provides default implementations of all the methods so that a subclass need only override those it's interested in.
workadapter类也包含在内,它提供了所有方法的默认实现,因此,子类只需覆盖自己感兴趣的方法即可。
This is one approach that enables the client to determine what member of the class hierarchy it receives, and process the additional information in the subclass accordingly.
这是一种可以使客户端能确定他接收到的是类层次中的什么成员的方法,并相应处理子类中的附加信息。
You can also override a method with the same signature that returns a subclass of the object returned by the original method.
你还可以覆盖一个方法,在这个方法中返回原始方法所声明的返回对象的子类。
As you can see, you can then create objects of this new subclass, specifying the two properties (title and HTML) that vary between each of the Windows.
正如您所看到的,您可以创建这个新子类的对象,指定两个在每个窗口中各不相同的属性(title和html)。
In this case, creating Pegasus as a subclass of Horse makes sense because it expresses a relationship between the two classes.
在本例中,创建Pegasus作为Horse的子类很有意义,因为它表示了这两个类之间的关系。
Finally, Listing 6 shows a partial implementation of the parameter definition subclass for int parameter values.
最后,清单6显示了int形参值的形参定义子类的部分实现。
You must subclass (that is, create a class that extends it) and create an instance of the child class.
必须创建子类(即,创建继承它的类),并创建该子类的实例。
The first two characters of the SQL state are a class value, and the last three characters form a subclass value.
SQL状态的前两个字符是一个类值,后三个字符形成子类值。
Implementations of this interface don't need to subclass any particular class; we have the maximum possible freedom.
实现这个接口不需要任何特定的子类;我们有最大限度的自由。
If a subclass of one of these classes needed to override the default behavior, it could do so by overriding the method.
如果这些类中的任何一个的子类需要覆盖默认行为,那么可以通过覆盖这个方法实现。
Which means that the type parameter of the Box can be t or any subclass of t.
这表示Box的类型参数可以是t或t的任何子类。
You might also reconsider your privilege model if you know that a certain subclass of users has increased responsibility over a certain part of the application.
如果您知道特定的用户子类增加了对应用程序特定部分的责任,则可能还要重新考虑权限模型。
This is the class that does the actual work of processing incoming events; it is a subclass of DefaultMessageHandler.
该类实际执行处理传入事件的任务;它是DefaultMessageHandler 的子类。
Although ontology defines a service as a subclass of element, it states that instances of higher level classes, for example, systems may provide capabilities that can be offered as services.
尽管在本体中服务是作为元素的子类而定义的,但是它也提到,上层类别(如系统)的实例提供的能力也可视为服务。
The disadvantage of using instanceof checks in this fashion is that, if we were to add another subclass of Tree (such as, a LeafWithValue class), we would have to revise these instanceof checks.
以这种方式使用instance of检查语句的一个缺点是,如果我们要添加Tree的另一个子类(比如一个leafwithvalue类),我们将不得不修改这些instance of检查语句。
You must understand how anonymous inner classes work (the inline declaration of the Command subclass) and understand the implications of the execute method.
您必须理解匿名内联类是如何工作的(Command子类的内联声明),并理解execute方法的含义。
This concept is getting more into the area of treating each element of an enumerated type as a subclass.
这个概念正在深入到将枚举类型的每个元素作为一个子类对待的领域。
If none of the prepackaged Style classes fit your needs, you can subclass the base Style class and define your own naming conventions.
如果没有预包装的style类符合您的需要,那么您可以定义Style基类的子类,并定义自己的命名约定。
The DelegatePaintPanel subclass allows any image to be the background of any other (partially transparent) component.
delegatepaintpanel子类允许任何图像作为任何其他(部分透明)组件的背景。
If a more complex set of data is required with more-customized queries, you can subclass the generic DAO.
如果查询需要更复杂的数据集,那么可以从泛型dao派生出子类。
This means that no subclass of that class can declare a finalizer.
这意味着该类的任何子类都无法声明终结器。
You also have a subclass of Vehicle called Automobile as shown in Listing 6.
您还有一个Vehicle的子类,类名为Automobile,如清单6所示。
An instance of this subclass can then be used to wrap a base XMLStreamReader, thus giving the application a modified view of the base XML stream.
然后使用这个子类的实例包装基本XMLStreamReader,从而为应用程序提供一个修改过的基本xml流的视图。
Once registered, this subclass receives notifications of network state transitions sent by the Lotus Expeditor network component.
一旦注册,这个子类就会接收由LotusExpeditor网络组件发送的网络状态转换的通知。
Within that subclass, we create a new method called EventTable that builds a table of results for a given event.
在这些子类内,我们创建了一个名为EventTable的新方法,为给定事件构建了一个结果表。
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.
该异常的抛出,表明代码企图把对象的类型转换成一个子类,而该对象并不是这个子类的实例。
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.
该异常的抛出,表明代码企图把对象的类型转换成一个子类,而该对象并不是这个子类的实例。
应用推荐