对象构造者,使得构造和初始化对象更容易。
Object initializers, which ease construction and initialization of objects.
此参数在对象构造函数上传递,以强制设置该参数。
This parameter is passed on the object constructor to mandate that it is set.
这表示继承的顺序必须在对象构造的时候被遵守。
This means that an order of inheritance must be followed during the construction of an object.
如清单7所示,代码十分冗长,因为许多对象构造函数都不带参数。
As shown in Listing 7, the code is verbose because many object constructors do not take parameters.
变量是无类型的,所以对象构造方法可能以清单1这样的代码开头。
Variables are untyped, so the object constructor might begin with code shown in Listing 1.
可以根据多维数据集模型或多维数据集对象构造SQL查询来获得OLAP数据。
SQL queries can be constructed to retrieve OLAP data based on either the cube model or cube objects.
锈(+SFML)-如何避免额外的对象构造时,有限的寿命参数?
Rust (+ SFML) - How to avoid extra object construction when limited by lifetime parameters?
当调度事件,你必须创建一个新的事件对象。事件对象构造的语法如下。
When dispatching an event, you must create a new event object. The syntax for the event object constructor is as follows.
类似地,字段的不变条件测试从不在对象构造期间进行,但是它们会在构造完成之后进行。
Similarly, field-invariant tests are never evaluated during object construction, but they are evaluated after construction completes.
与对象池一起使用的对象构造函数提供资源分配器的能力,无需实现完整的资源分配器。
Object constructors used in conjunction with object pooling provide the capabilities of a resource dispenser, without the effort of implementing a full resource dispenser.
既然已经连接了所有流行的浏览器中的鼠标事件,对象构造方法已经完整了,可以返回到对象原型了。
Now that you have hooked cursor events in all popular browsers, your object constructor is complete and you can return to the object prototype.
类库在编译程序的面向对象构造过程中起重要作用,词法分析类库是编译类库的重要组成部分。
Class library plays the vital role in the construction of compiler by object-oriented method and lexical analysis class library is an important part of object-oriented compiling class library.
在继承中,派生类接受基类的成员变量和方法。这表示继承的顺序必须在对象构造的时候被遵守。
In inheritance, the derived class receives the base class member variables and methods. This means that an order of inheritance must be followed during the construction of an object.
通过像使用命名构造函数参数一样使用属性名称并赋值,您也可以在对象构造过程中为对象设置属性。
You can also set properties on an object during the construction of the object by using the property names and assigning values just as you use named constructor arguments.
将用户的del . icio . us用户名和密码传递给对象构造函数来完成HTTP身份验证。
The user's del.icio.us user name and password are passed to the object constructor and used to perform HTTP authentication.
分布式对象构造技术是实现分布式数据库系统的基础,而数据库访问技术是开发分布式数据库系统的关键。
Distributed object construction technique is the foundation to achieve distributed database system function, and the technique of accessing database is the key to achieve distributed database system.
清单3传递一个null值到对象构造函数的第一个参数,以非wsdl模式初始化了一个新的Zend_Soap_Server对象。
Listing 3 initializes a new Zend_Soap_Server object in non-WSDL mode, passing a null value as the first argument to the object constructor.
这个引擎将自动地为该对象构造的一个新的实例,然后调用其init方法,以便该对象能够有机会根据上下文对象对自己进行初始化。
The engine will automatically construct a new instance of the object then call the init method on that object, so that the object has a chance to initialize itself from the context object.
类的这种重构也会改进代码,因为我们将初始化逻辑从对象的构造函数分离出来了。
This refactoring of the class also improves the code so that we have separated the initialization code from the object construction code.
构造合适的业务对象。
对象是软件构造,其行为就像它们建模的真实世界的实体。
Objects are software constructs that behave like the real-world entities that they model.
如果共享内存已经存在,对象的构造就会被跳过。
The object construction is skipped if the Shared memory already exists.
从用例和类表出发,我们从类里选择需要交互的对象,然后构造一张序列图表示这种交互。
Starting with our use case and list of classes, we choose objects from those classes to interact, and we construct a SQD to show that interaction.
不带参数的构造器确保可以根据序列化状态远程构造对象。
A non-argument constructor ensures the object can be constructed remotely from a serialized state.
所以在创建对象之前,必须构造相同类或其超类的另一个对象。
So before an object is created, another object of the same class or of its superclass must be constructed.
事件对象数据字段将成为中间对象的字段构造器。
The event object data field will be the field constructor of the intermediate object.
NIEMXML数据模型提供公共对象的构造块。
The NIEM XML data model provides building blocks for common objects.
中间对象将成为操作对象的字段构造器,如图19所示。
The intermediate object will be the field constructor of the action object, as shown in Figure 19.
构造对象。
为了解决这一问题,可以在抛出异常语句期间,在异常对象的构造函数中生成一个堆栈跟踪。
To deal with this, you can generate a stack trace in the constructor of the exception object during the throw exception statement.
应用推荐