However, it is often useful to provide additional constructors.
然而,提供其他构造函数通常十分有用。
Writing constructors is often a repetitive task.
编写构造函数经常是重复性的工作。
The compiler will also verify that this method is called from user defined constructors and report a warning or error it is not.
方法。编译器还将验证方法是否是从用户定义的构造函数调用的,如果不是,则报告一个警告或错误。
Indexed properties, methods, and constructors are allowed to be overloaded; fields and events must not be overloaded.
允许重载索引属性、方法和构造函数;不能重载字段和事件。
Defining the reasonable set of constructors is often the simplest approach.
通过定义合理的构造器集合通常是最简单的途径。
Any constructors that you define for structures must have at least one argument so that they do not conflict with the default constructor.
为结构定义的任何构造函数都必须至少有一个参数,以便不会与默认构造函数冲突。
Constructors enable the programmer to set default values, limit instantiation, and write code that is flexible and easy to read.
构造函数使得程序员可设置默认值、限制实例化以及编写灵活且便于阅读的代码。
Building constructors in Ji Nan and Qingdao have found our product easy to install and very attractive in appearance.
济南与青岛的建筑商,大多认为我公司产品易于安装,且外观颇具吸引力。
Traits don't support auxiliary constructors, nor do they accept an argument list for the primary constructor, the body of a trait.
Traits不支持辅助构造函数,它们也不支持在主构造函数,trait的主体里的参数列表。
This behavior is referred to in the DI world as constructor injection, because the instance is passed through one of the constructors.
这个行为在DI世界中称作构造函数注入,因为实例是通过一个构造函数传递的。
There is a third possibility: The element type might be of a class type that does not define any constructors .
还有第三种可能性:元素类型可能是没有定义任何构造函数的类类型。
Instance constructors can also be used to call the instance constructors of base classes.
也可以用实例构造函数来调用基类的实例构造函数。
YUI Profiler allows you to register functions, class constructors, and objects to be measured.
YUIProfiler可以注册要测量的函数、类构造函数和对象。
Or you could declare it in an initialization method that is called by all constructors.
或是可以在所有建构函式呼叫的初始设定方法中宣告。
RAILWAY ROLLING STOCK. DELIMITATION OF TECHNICAL ALLOWANCES BETWEEN THE CONSTRUCTORS AND THEIR SUPPLIERS FOR THE EXECUTION OF AN ORDER.
铁路车辆.订货时,厂家及其供货者之间提供技术的规定
As shown in Listing 7, the code is verbose because many object constructors do not take parameters.
如清单7所示,代码十分冗长,因为许多对象构造函数都不带参数。
These bounds could specify the set of available constructors that must be present in any instantiation of the parameter.
这些界限可以指定一组可用的构造函数,它们必须出现在参数的每一个实例化中。
Just like an admin command, a task command should provide constructors to create and load commands.
就像管理命令一样,任务命令应该为创建和加载命令提供构造器。
Two polymorphic Constructors allow for persistence of either simple String values or Objects of any sort.
两个Constructors允许简单字符串值或者任意种类Objects的持续。
You should not use your instance constructors, some special private function, or any other idiom to initialize static variables.
不应该使用实例构造函数、一些特殊的私有方法、任何其它习惯来初始化静态变量。
以上图片仅供学习交流使用,版权归原作者所有,如有侵权,请与我方联系