因此,您永远都不该为一个不可变类提供一个无参数的构造函数。
Thus, you should never have a no-argument constructor for an immutable class.
如果您没有提供一个无参数构造函数的话,那么这是您给对象添加一些状态的最后机会!
If you haven't provided a no-argument one, this is your last chance to add some state to the object!
变量是无类型的,所以对象构造方法可能以清单1这样的代码开头。
Variables are untyped, so the object constructor might begin with code shown in Listing 1.
对于带有少数几个构造方法参数的类,或者如果您正创建同一个类的多个方法,这是可行的,但是对于构造方法具有大量参数的类来说,很快就会变得杂乱无章。
For classes with few constructor arguments or if you are creating many objects of the same class, this is viable but soon becomes untidy for classes whose constructors have lots of arguments.
辅助类代理也包含一个默认的无参数构造器,用来建立它所代表的COM对象的实例。
The coclass proxy also contains a default parameterless constructor for creating an instance of the COM object it represents.
不要提供一个无参数的构造函数。
它同样计划构造一个无掺杂隧道的平面晶体管。
It, too, plans to build flat transistors with undoped channels.
因为铁板周围的地理构造差异,使得每一个声音听起来都是独一无二的。
Every sound was unique, in part because of small variations in the geology surrounding the plates.
编程模型是优雅的,基于构造函数的风格意味着您无需包括无参构造函数。
The programming model is elegant, and the constructor-based style means you don't have to include a constructor without arguments.
事件驱动的编程是围绕事件生产者和事件消费者之间的无耦合关系的概念构造的。
Event-driven programming is structured around the concept of decoupled relationships between event producers and event consumers.
按照推理,如果您用SOAPMappingRegistry的无参数构造函数对它进行实例化,将返回一个具有2001名称空间意识的实例。
As a corollary, if you instantiate SOAPMappingRegistry with its no-arg constructor, a 2001 namespace-aware instance is returned.
如果您正在使用的框架因为某些原因需要使用这样的构造函数的话,那么您可以了解以下能否通过提供一个私有的无参数构造函数(这是经由反射可见的)来满足这一要求。
If you're using a framework that requires this for some reason, see if you can satisfy it by providing a private no-argument constructor (which is visible via reflection).
连接工厂的构造器是无参数的,因此工厂有变异方法可以被调用,以控制工厂将提供的连接的特性。
The connection factory's constructor is parameterless, so the factory has mutator methods that can be invoked to control the properties of the connection the factory will supply.
事实上,Groovy先调用默认的无实参构造函数,然后调用每个字段的相应setter。
In reality, Groovy calls the default no-argument constructor first and then calls the appropriate setter for each field.
类必须有一个标准的公用的无参的构造器。
The class must have a standard public, no arguments constructor.
磁轴承是在构造上类似的无装配槽的深沟球轴承。
Magneto bearing is similar in its construction to the deep-groove ball bearing without filling slots.
然后检查光能量星构造坚固以及无裂缝和裂纹线而如果它是坚固的然后做得不错的话。
Then check that the light energy star is solid in construction and free of cracks and lines and if it is solid then well done.
然后检查光能量球构造坚固以及无裂缝和裂纹线而如果它是坚固的然后做得不错的话。
Then check that the light energy orb is solid in construction and free of cracks and lines and if it is solid then well done.
然后检查光能量泡构造坚固以及无裂缝和裂纹线而如果它是坚固的然后做得不错的话。
Then check that the light energy bubble is solid in construction and free of cracks and lines and if it is solid then well done.
别墅从朝向、构造、密封到无热桥连接,能经受德州中部的炎热气候。
The house is built to endure the hot climate of central Texas, from orientation to framing to airtightness to thermal-bridge free connections.
默认构造函数调用父类的无参数构造函数。
The default constructor invoked the no - arg constructor of the superclass.
作为混合的设备称为湿碾机,它的构造与干碾机相似,只是碾盘上无筛孔,碾砣较轻,有卸料机构等。
Mixing equipment known as a wet mill, its structure is similar with the dry mill, but Nianpan is no sieve, grind mound less, there is discharge organizations.
身体某一部位通过构造或细胞重组织的方式实现再生,产生有限新细胞;主要发生于无脊椎生物体,如龙虾。
Regeneration on a reduced scale of a body part; observed especially in invertebrates such as certain lobsters.
为了解决目前存在大量XML文档无模式定义的问题,提出一种XML文档模式的自动构造算法。
In order to solve the problem that a great deal of XML document has not schema definition, proposes an algorithm to construct the schema definition automatically.
在板的有限元分析中,构造协调和无剪切闭锁现象的中厚板单元一直是人们所关注的问题和难题。
The structure coordination and shear unlocking middle thick plate element is a problem to which people pay close attention in the finite element analysis of plate.
本文介绍了一种新的无模型专家控制器,并给出相应的理论和构造方法。
This paper introduces a new non-model expert controler, and gives relevant theory and structural method.
类x的默认构造函数是指可以被无参数调用的X的构造函数。
A default constructor for a class X is a constructor of class X that can be called without an argument.
类x的默认构造函数是指可以被无参数调用的X的构造函数。
A default constructor for a class X is a constructor of class X that can be called without an argument.
应用推荐