构造函数 - 翻译成英语

constructor
构造函数
构造器
车队
一个构造
constructors
构造函数
构造器
车队
一个构造
a destructor

在 中文 中使用 构造函数 的示例及其翻译为 英语

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
NoArgument:不带任何参数,则Date()构造函数创建一个Date对象设置为当前日期和时间。
No Argument: With no arguments, the Date() constructor creates a Date object set to the current date and time.
所有的类都有构造函数,不管有没有定义,Java会自动提供一个默认的构造函数来初始化所有成员变量为零。
All classes have constructors, whether you define one or not, because Java automatically provides a default constructor that initializes all member variables to zero.
另一方面,移动构造函数可以只复制指针,然后将源中的指针设置为null。
The move constructor, on the other hand, can just copy the pointer and then set the pointer in the source to null.
Synchronized构造函数没有意义,因为当对象创建时,只有创建对象的那个线程才能访问它。
Synchronizing constructors doesn't make sense, because only the thread that creates an object should have access to it while it is being constructed.
请注意,您只能链接到一个构造函数,并且它必须是构造函数主体中的第一条语句。
Note that you can only chain to one constructor, and it has to be the first statement in your constructor body.
在访问任何静态字段之前,都将自动调用静态构造函数,它们通常用于初始化静态类成员。
Static constructors are called automatically, immediately before any static fields are accessed, and are generally used to initialize static class members.
从3.0版开始,C++11根据需要声明了两个额外的特殊成员函数:移动构造函数和移动赋值运算符。
Since version 3.0, C++11 declares two additional special member functions on demand: the move constructor and the move assignment operator.
如您所见,我们首先创建一个内置类型符号的实例,然后将其作为参数传递给VarSymbol的构造函数
As you can see, we first create an instance of a built-in type symbol and then pass it as a parameter to VarSymbol‘s constructor.
当然,构造函数也可以被重载,这意味着我们可以定义多个构造函数,名称相同,但接受不同的参数。
Of course, a constructor can be overloaded as well, meaning we can have several constructors, with the same name, but different parameters.
此示例有Decimal(Int32,Int32,Int32,Boolean,Byte)构造函数,它从提供的部分生成新的Decimal值。
An example of this is the Decimal(Int32, Int32, Int32, Boolean, Byte) constructor, which builds a new Decimal value from the supplied parts.
一个实例初始化程序只是一个类的代码块,但在任何方法或构造函数之外。
An instance initializer is simply a block of code inside the body of a class, but outside of any methods or constructors.
如果你的合约通过一个没有payable修饰符的公有函数(包括构造函数和fallback函数)接收Ether。
If your contract receives Ether via a public function without payable modifier(including the constructor and the fallback function).
实际上,一个struct甚至可以被认为是一个“轻量级类”,因为它可以包含构造函数、常量、方法等等。
In fact, a struct can even be considered to be a“lightweight class” itself as it can contain constructors, constants, methods and more.
此决策基于两个因素:是否存在环境事务以及构造函数中TransactionScopeOption参数的值。
The decision is based on two factors: whether an ambient transaction is present and the value of the TransactionScopeOption parameter in the constructor.
Vector的另一个好处是,memcpy()不能正确处理带有复制构造函数的元素,例如string:.
Another advantage of vector here is that memcpy() is not going to do the right thing for elements with copy constructors, such as strings.
这段代码的问题在于,在强制执行内容安全策略(CSP)【WEB】的网站中不能用Function构造函数和eval。
The problem with this code is that the Function constructor and eval cannot be used in websites that enforce Content Security Policy(CSP).
在上面的代码中,使用旧编译器的结果f()是复制成x运用X的复制构造函数
In the above code, with old compilers the result of f() is copied into x using X's copy constructor.
如果构造函数没有显式地返回一个对象,那么将使用步骤1中创建的对象。
If the constructor function doesn't explicitly return an object, the object created in step 1 is used instead.
构造函数不能被再次调用,因为它不保存在任何地方,只是被创建和调用。
The constructor can't be called again, because it is not saved anywhere, just created and called.
构造函数是Object(),它可以创建一个只有默认属性和方法的简单对象。
The constructor being used is Object(), which creates a simple object with only the default properties and methods.
结果: 254, 时间: 0.0379

构造函数 用不同的语言

单词翻译

顶级字典查询

中文 - 英语