In this case, we have it just print a message to the console and then call the base class version for actual handling.
在此例中,我们仅让它向控制台打印一条消息,然后调用它的基类版本来执行实际的处理。
In fact, you can substitute the base class for every node object, giving your whole application custom behaviors.
事实上,您可以置换每种节点对象的基类,从而能够定制整个应用程序的行为。
These classes delegate responsibility for base class behavior to an instance of the base class.
这些类将基础类行为的责任委托给基础类的一个实例。
All classes inherit from a common base class.
所有的类都从一个通用的基类继承。
我还添加了一个基类。
Connections are established by creating instances of the PDO base class.
连接是通过创建pdo基类的实例而建立的。
To begin we create an abstract base class which represents the service we want to expose.
首先,我要创建一个抽象基类,用于表示我们要公开的服务。
A child (or derived) class can have one and only one parent (or base) class.
一个子(或继承的)类只可以有一个父类(基类)。
While technically not meant to act as a generic base class for addresses, it could be used for that purpose.
虽然从技术的角度看,其没有打算充当地址的通用基类,但还是可以这样来使用。
You might think, reasonably enough, that the same enhancement can be accomplished simply by subclassing the XO base class.
您可能会非常合理地想到,也可以定义xo基类的子类来实现同样的增强。
The application's style sheet source should immediately follow the declaration of the application's base class (see Listing 5).
应用程序的样式表源代码应该立即出现在应用程序基类声明之后(参见清单5)。
You can then use the base class, or any of the subclasses, in methods that are typed to expect the base class as a method argument.
然后您就可以在键入的以基类作为方法参数的方法中使用基类或任何一个子类。
Accessors reduce the risk of the fragile base class problem where changes in a superclass ripple throughout its subclasses.
读写方法减少了超类中的更改影响到其子类的这种脆弱的基类问题所带来的风险。
The basic solution is to define a base class or interface that can be accessed by the statically compiled code, then extend that base class or implement that interface in the generated class.
基本的解决方案是定义可以用静态编译的代码访问的基类或者接口,然后生成的类扩展这个基类或者实现这个接口。
Marking the base class as "private" allowed the derived class to inherit from it without actually becoming one of them.
将基类标记为 “私有”允许派生类从该基类继承而来,而无需实际成为 一个基类。
Access to data fields inherited from a virtual base class is not supported.
不支持访问从虚拟基类继承的数据字段。
Another use of abstract classes is to create a single base class for multiple derived classes in which that base class should never be instantiated.
抽象类的另一个用途是为多个派生类创建一个基类,在这些派生类中,基类决不会被实例化。
Figure 1 presents a base class for persistent entities that contains the necessary auditing fields.
图1为包含审计字段的持久化实体提供了一个基类。
I'll want to extract the common elements of performance into an abstract base class.
我想把性能的公共元素提取到一个抽象基类。
Contrast the use of an abstract base class against an interface?
对比抽象基类和接口的使用。
Suppose you have a derived class D whose base class B has implemented some interfaces.
假设有个类型D,它的基类B实现了某些接口。
The derived classes have the same dynamic class attributes of the base class.
派生类具有跟基类相同的动态类属性。
The parts that are common throughout all your systems go to a base class you always use.
在整个系统中都会使用的部分可以放到基类里面。
Instead they must mix the base class attributeMap property with their values.
相反,它们必须混合基础类attributemap属性与它们的值。
The first code snippet shows the base class BOBase.
第一个代码片断展示了基类bobase。
org.objectweb.asm.ClassAdapter is a convenient base class for this purpose.
ClassAdapter 是针对此目的的一个方便的基类。
The base class in Listing 7 extends android.os.AsyncTask.
清单7中的基类扩展了android.os.AsyncTask。
Redefining the _xo_ base class.
重定义_ XO _基类。
JoContainer is the base "class" for organizing sets of UI elements.
joContainer是组织ui元素集合的基类。
The Configuration class is simply a base class — an abstract class.
configuration类只是一个基类——一个抽象类。
应用推荐