Once I have a constructor function, I can use the new operator to create objects, as shown below
拥有构造函数之后,就可以使用new操作符来创建对象了,如下所示
Also notice the lack of declarations and the lack of a new operator when creating class instances.
还要注意在创建类实例时没有声明、也没有new运算符。
In the constructor, they are assigned a value, through the use of the new operator, it's not a declaration.
在构造函数中,他们被分配一个值,通过新的运营商使用,它不是一个宣言。
Variables are dynamically typed on assignment, so there is no need to pre-declare variables or use the new operator.
变量是在赋值时动态键入的,因此不需要预先声明变量或者使用new运算符。
Using the new operator calls the default constructor of the specific type and assigns the default value to the variable.
此调用后,该结构被认为已被明确赋值;也就是说该结构的所有成员均已初始化为各自的默认值。
We have first created a myObjDef constructor below, and immediately created a new instance of myObjDef using the new operator.
我们先在下面创建了一个myObjDe f构造器,并立即用新的操作符创建了一个新的myobjdef实例。
The new operator creates the object by allocating the number of bytes required for the specified type from the managed heap.
New算符从受控制的堆里分配指定类型需要的内存来创建对象。
At last, the new operator is applied in the relative orientation of digital image pairs and the results are very satisfactory.
最后,这种算子被用于数字影像的相对定向,取得了令人满意的结果。
There are numerous ways in which the asynchronous patterns can allocate memory without the developer explicitly using the new operator.
异步模式下无需开发者显式使用new运算符,即可通过多种方式分配内存。
A new operator is used for introducing the heuristic information so as to maintain the ability of classification of the attributes set.
通过构造一个新的算子来引入启发式信息,使得选择的属性子集的分类能力不变。
Compared with general ANN design, this paper puts forward a new operator, BP operator, and optimizes the ANN's initial weights and structure at the same time.
本文与一般的基于遗传算法的神经网络设计相比,提出一个新型算子——BP算子,并对神经网络的权值和结构同时优化。
To give applicable range of image analogies algorithm, based on the fractal dimension vector, a new operator used to measure the image similarity is proposed.
为了给出图像类推算法的适用范围,提出了一种新的基于分形维数向量的图像的相似性度度量算子。
In this paper, by means of a new operator, W-operator, presented by the author, the design of electric drive control system is discussed and analyzed in theory.
本文利用作者最近提出的一种新的算子方法——W -算子方法,从理论和应用方面探讨了电气传动控制系统的设计问题,并对算法的收敛性进行了分析。
The only reliable way to do it is to also export a class factory function, a simple function that USES the new operator to create the object and return the pointer.
唯一可靠的方法就是也出口类工厂函数,一个简单的函数,使用新的操作符来创建对象并返回的指针。
When invoked with the new operator, the constructor function creates what is known as a prototype for an object; that is, it creates a template from which to build objects of the given kind.
当调用new操作符时,构造函数就为对象创建一个所谓的原型(prototype);也就是说,它创建了一个模板(template),从中构建给定类型的对象。
The Change Control Manager ensures that the it Operator can monitor the new solution and that the housekeeping procedures required by the solution are in place.
变更控制管理人员确保IT操作人员可以监视新解决方案,并确保配备了解决方案所需的常规过程。
Operator overloading allows new data types to be created that seamlessly integrate into the language.
运算符重载允许创建与语言无缝集成的新数据类型。
First, you can create a new string by adding other strings together, either using the + operator or by just sticking strings together using the appropriate quotes.
第一,通过将其他字符串添加在一起,可以创建新的字符串,具体方法可以使用+运算符,或者干脆使用适当的引号将字符串连在一起。
To make such conversions between arrays and tables possible, DB2 provides the new ARRAY_AGG function and UNNEST operator.
要使阵列和表之间的转换成为可能,DB 2要提供新的array_agg函数和UNNES t运算符。
Earlier the operator of the bourse, which lies behind only new York this year in the amount of money raised from new listings, posted a 19% rise in quarterly profit.
早些时候,该所在上市公司方面的利润仅落后于纽约证交所,港交所的经营者曾公布本季度利润(环比)增长19%。
But the wind business is new to Exelon, the nation's largest operator of nuclear power plants.
而风业务是新艾斯,全国最大的核电站运营商。
A new mobile operator context with two partitioned use cases and a new actor (Simpay Ltd.) has been derived from the higher abstraction level.
带有两段用例和一个新参与者(Simpay有限公司)的新的移动操作者语境已经由更高抽象层派生出来。
The move was still rather abrupt as NTT DoCoMo, the biggest mobile phone operator in Japan, said this month that it would sell a new Nokia smartphone for the winter season.
这种举措相当出人意料。本月内,日本电报电话公司下属的日本最大的移动电话运营商DOCOMO还表示,将推出一款全新的诺基亚智能手机作为冬季的主打机型。
South Korea's largest mobile phone operator said Thursday that it will offer cell phone users a new noise service that it says will repel mosquitoes.
韩国最大的移动电话运营商7月10日表示他们将向手机用户提供一项全新的干扰音服务,他们称,这项服务是用来驱蚊的。
The powerful as operator in Groovy takes a code block and generates a new class that implements the interface, which you can then call as if it were a concrete class implementing the interface.
Groovy中强大的as操作符接收一个代码块并生成一个新类来实现该接口,您可以像调用实现该接口的具体类一样调用它。
The raw operator is new to Rails 3. Counter to previous releases of Rails, all strings are emitted safe, stripped of HTML, by default.
raw操作数是Rails3中新增的功能。与以前版本的Rails不同,默认情况下所有的字符串都可以(去掉了HTML)安全发送。
The raw operator is new to Rails 3. Counter to previous releases of Rails, all strings are emitted safe, stripped of HTML, by default.
raw操作数是Rails3中新增的功能。与以前版本的Rails不同,默认情况下所有的字符串都可以(去掉了HTML)安全发送。
应用推荐