基类 - 翻译成英语

base class
基类
基础 类
base 类
阶级 基础
基础类
与 虚基 类
基 类
base classes
基类
基础 类
base 类
阶级 基础
基础类
与 虚基 类
基 类

在 中文 中使用 基类 的示例及其翻译为 英语

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
当一个类派生自基类,该基类可以被继承为public、protected或private几种类型。
When deriving a class from a base class, the base class may be inherited throughpublic, protected or private inheritance.
Object类没有直接基类并且是所有其他类的最终基类。
The object class has no direct base class and is the ultimate base class of all other classes..
一个类可以从多个类中派生的,这意味着它可以继承数据和函数从多个基类
Class can be derived from more than one classes and can inherit data and functions from numerous base classes.
当基类型列表包含基类和接口时,基类必须是列表中的第一项。
When a base type list contains a base class and interfaces, the base class must come first in the list.
带注释的控制器具有灵活的方法签名,不必扩展基类,也不需要实现特定的接口。
Annotated controllers have flexible method signatures and do not have to extend base classes nor implement specific interfaces.
这种新机制更加便于使用,能够替代原先存在的元类机制来定制基类创建。
This new mechanism can be seen as an easier to use alternative to the previously existing metaclass mechanism for base class creation customization.
这与C++模型是对立的,在C++中接口实际上就是抽象基类
This stands in contrast to the C++ model, in which interfaces are actually abstract base classes.
就我们的情况而言,我们仅需要再创建一个混入--DirtyMixin,它持有先前放在基类中的脏标记。
In our case we just need to create one more mixin- the DirtyMixin, which holds the dirty flag that previously resided in the base class.
经典类采用了一种简单MRO机制:查找一个方法时,搜索基类简单的深度优先从左到右。
Classic classes used a simple MRO scheme: when looking up a method, base classes were searched using a simple depth-first left-to-right scheme.
Mammal是一个Animal,Reptile也是一个Animal,但每个派生类均表示基类的不同专用化。
A Mammalis an Animal, and a Reptile is an Animal, but each derived class represents different specializations of the base class.“.
这种双重继承模式也适用于下面描述的所有基类
This dual inheritance scheme is also used for all of the base classes described below.
顺便提一下,如果你想动态决定(例如,取决于资源的可用性)要使用哪个基类,这个技巧也很方便。
Incidentally, this trick is also handy if you want to decide dynamically(e.g. depending on availability of resources) which base class to use.
对于非联合体,所有非静态数据成员和基类是非volatile字面类型。
For non-unions, all non-static data members and base classes are of non-volatile literal types.
一个类可以从多个类中派生的,这意味着它可以继承数据和函数从多个基类
A class can be derived from more than one class, which means it can inherit data and functions from multiple base classes.
包含一组基类的模拟数据首先用于学习一组初始权重。
Simulated data containing a set of base classes is first used to learn an initial set of weights.
我会把注意力集中在通用基类、基类访问、多重继承、接口、后期绑定以及其它相关的内容。
Instead I will focus on the common base class, access to the base class, multiple inheritance, interfaces, late binding, and other related topics.
定义:所有引用基类(父类)的地方必须能透明地使用其子类的对象.
Definition: All references to base classes(parent classes) must be able to transparently use objects of their subclasses.
若初始化器子句数超出要初始化的成员及基类(C++17起)数,则程序为病式(编译错误).
If the number of initializer clauses exceeds the number of members and bases(since C++17) to initialize, the program is ill-formed(compiler error).
为了除去基类,我们只需要把功能移到混入中去。
In order to get rid of the base class, we just move the functionality into mixins.
这可以是有用的,例如,当基类在另一个模块中定义时.
This can be useful, for example, when the base class is defined in another module.
结果: 123, 时间: 0.0285

顶级字典查询

中文 - 英语