A sealed class cannot be used as a base class.
密封类别不能当做基底类别使用。
The WebComponent ACTS as a base class for simple HTML components such as Label and Image.
WebComponent充当诸如标签和图像这类简单的HTML组件的基类。
Acts as a base class for deriving a validation class so that a value of an object can be verified.
作为基类,用于派生验证类,以便验证对象的值。
A class that a user must add as a base class or as a member to make the user class compatible with intrusive containers.
一个类,用户必须将它作为基类或作为成员加入到用户类中,使得用户类兼容于介入式容器。
Because they can never be used as a base class, some run-time optimizations can make calling sealed class members slightly faster.
由于密封类从不用作基类,所以有些运行时优化可以使对密封类成员的调用略快。
Member template functions cannot be virtual functions and cannot override virtual functions from a base class when they are declared with the same name as a base class virtual function.
当使用与基类虚函数相同的名称进行声明时,成员模板函数不能是虚函数并且不能从基类重写虚函数。
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).
派生类的大小等于基类加上派生实例定义的其他成员(以及对齐所必需的任何额外空间 —如前所述)的大小。
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组件。
So, we will have a base Switch class as follows.
所以下面我们会有一个开关基类switch。
Framework bloat is a major concern for some projects, and as such, all of Ninject's core functionality is in a single assembly with no dependencies outside the.net base class library.
框架膨胀是一些项目面临的最大问题,鉴于此,Ninject的所有核心功能都是一个单独的程序集,与。NET基本类库没有任何依赖。
Regardless, it turns out that a phenomenal amount of behavior between these two classes is identical, and as a result, both in turn inherit from a common base class, AbstractList.
无论如何,这两种类之间存在大量相同的行为,它们继承了公共基类AbstractList。
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.
然后您就可以在键入的以基类作为方法参数的方法中使用基类或任何一个子类。
While technically not meant to act as a generic base class for addresses, it could be used for that purpose.
虽然从技术的角度看,其没有打算充当地址的通用基类,但还是可以这样来使用。
The customer class can be an abstract base class for a family of different customer types, such as private or business customer.
客户类可以是用于许多不同客户类型的抽象基类,比如说私有客户或业务客户。
These skins can also be used as a base by specifying it in the class attribute of your application's overall HTML body tag.
通过在应用程序的整个HTML主体标记的类属性内指定,也可以将这些皮肤用作基础。
You can modify an existing class, pass it as a parameter, and take advantage of the API without requiring the base API to declare an abstract class or interface.
您可以修改已有类,将它作为参数传递,并利用API,而不需要基础 API声明一个抽象类或接口。
Determining the CC of class methods in a code base and continually monitoring these values will give your team a head start on addressing complexity issues as they arise.
确定代码库中类方法的CC并连续监视这些值将使您的团队在复杂问题出现时抢先处理它们。
This serves as a useful base case, similar to a base Visitor class in the classic Visitor pattern.
这将作为一种有用的基本用例,类似于经典访问者模式中的基本Visitor类。
In fact, as we shall see in the following sections, a class can have a base class and implement multiple interfaces.
事实上,正如我们将从以下小节要看到的,一个类可以有一个基类,并且实现多个接口。
Here is a simple example of normal inheritance. We define a Noble base class, with subclasses such as Prince, Duke, Baron, etc.
这里有一个普通的继承的简单例子,我们定义了一个Noble基类,它有子类Prince,Duke,Baron等等。
One way to approach this is to factor the extraction of the parameters and the invocation of the doPost method itself into a base class, such as in version 2 shown in Listing 8
一种解决方法是将参数提取和doPost方法本身的调用添加到一个基类,如清单 8中的版本2所示
Since we know the type of a class by the messages we can send to it, this means that the derived class is the same type as the base class.
因为我们可以通过能给类发送的消息知道这个类,所以这意味着衍生类和基类属于同种类型。
You must explicitly add the template type parameters to the template class name when using it as a template parameter in a base class list.
当要将某个模板类型参数用作基类列表中的模板参数时,必须显式地将该模板类型参数添加到模板类名中。
By including the Hibernate module (as opposed to inheriting from a framework base class), the Hibernate mapping is generated and configured automatically.
end通过包含Hibernate模块(而不是从框架中的基类中继承),Hibernate映射就会被自动生成并配置。
The best way to tune a detector is to run it on a large code base, such as the JDK class libraries (rt.jar), Eclipse, or JBoss.
优化检测器的最佳方法是在JD k类库(rt . jar)、Eclipse或JBoss之类的大型代码基址上运行它。
It is invalid to use an unspecialized template class name as a template parameter in a base class list.
将非专用化的模板类名用作基类列表中的模板参数是无效的。
An unspecialized class template cannot be used as a template argument in a base class list.
不能将非专用化的类模板用作基类列表中的模板参数。
Base hook: the hook is stored as a public base class of the user class.
基类钩子:钩子被保存为用户的一个公有基类。
The main advantage in using interfaces is that classes can implement more than one of them, as opposed to being able to derive from a single base class (abstract or otherwise).
使用接口的主要优点是可以实现的类不止一个,而这些类不能从一个单一的基类派生(抽象或相反)。
As a result, you can exactly substitute an object of the derived class for an object of the base class.
结果是你可以用衍生类的对象替代基类的对象。
应用推荐