base class
基础类别,基本类
2025-09-06 14:31 浏览次数 8
基础类别,基本类
Base Controller Class使用的基类
base exception class异常类
base configuration class基础配置类
base validation class以及验证基类
Base page class页面基类
base-class decomposition基类分解
knowledge base of class hierarchy类层次知识库
empty base-class optimisation空基类优化
Subclassing the class is typically not an option here, since the method needs to be available to instances of the base class itself.
在这种情况下,继承这个类通常是行不通的,因为所添加的方法需要在基类的实例中可用。
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.
然后您就可以在键入的以基类作为方法参数的方法中使用基类或任何一个子类。
Each base class is responsible for tracking performance before and after certain operations and will need to update system-wide performance statistics for that information.
每个基类负责跟蹤某项操作前后的性能,还需要更新系统范围内这条信息的性能统计值。
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为包含审计字段的持久化实体提供了一个基类。
Another helpful addition to PHP V5 is the abstract class, which makes it easy to have one base class to implement the core of an interface from which you then create concrete classes.
PHPV 5中另一个有帮助的新功能是抽象类,使用抽象类可以轻松地用一个基类实现接口的核心部分,然后用该接口创建实体类。
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.
基本的解决方案是定义可以用静态编译的代码访问的基类或者接口,然后生成的类扩展这个基类或者实现这个接口。
In this case, we have it just print a message to the console and then call the base class version for actual handling.
在此例中,我们仅让它向控制台打印一条消息,然后调用它的基类版本来执行实际的处理。
For example, an error handling method can be implemented in a callback base class so that it can be used by all callbacks to ensure all remote service exceptions will be handled consistently.
例如,可以在回调基类中实现错误处理方法,让所有回调都可以使用它,从而确保以一致的方式处理所有远程服务异常。
The size of a derived class is the size of the base class plus the additional members defined by a derived instance (and any extra space required for alignment, as discussed earlier).
派生类的大小等于基类加上派生实例定义的其他成员(以及对齐所必需的任何额外空间 —如前所述)的大小。
In fact, you can substitute the base class for every node object, giving your whole application custom behaviors.
事实上,您可以置换每种节点对象的基类,从而能够定制整个应用程序的行为。
A base class is great for defining common functionality, but you must make sure that each data element defined is truly necessary.
基类可以很好地定义常见功能,但是您必须确保所定义的每个数据元素都是真正需要的。
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.
不支持访问从虚拟基类继承的数据字段。
This base class adds functionality for testing GWT code as well as handling some of the plumbing to get a GWT component up and running.
该基类添加了一些功能,可测试GWT代码并处理某些基础实现从而启动并运行GWT组件。
Accessors reduce the risk of the fragile base class problem where changes in a superclass ripple throughout its subclasses.
读写方法减少了超类中的更改影响到其子类的这种脆弱的基类问题所带来的风险。
While technically not meant to act as a generic base class for addresses, it could be used for that purpose.
虽然从技术的角度看,其没有打算充当地址的通用基类,但还是可以这样来使用。
The application「s style sheet source should immediately follow the declaration of the application」s base class (see Listing 5).
应用程序的样式表源代码应该立即出现在应用程序基类声明之后(参见清单5)。
The customer class can be an abstract base class for a family of different customer types, such as private or business customer.
客户类可以是用于许多不同客户类型的抽象基类,比如说私有客户或业务客户。
To begin we create an abstract base class which represents the service we want to expose.
首先,我要创建一个抽象基类,用于表示我们要公开的服务。
If an abstract base class is not appropriate, Interfaces can be chained together to build up functionality.
如果不适用于抽象基类,可以将接口串联在一起,以构建其功能。