添加的构造函数处理存取顺序选项。
The additional constructor deals with the access order option.
语法规则在其构造函数中定义。
清单1展示了一个示例构造函数。
不要提供一个无参数的构造函数。
没有用于创建记录存储的构造函数。
必须拥有公有的默认构造函数。
最常实现的方法是构造函数方法。
The most commonly implemented of these methods is the constructor method.
它们只通过构造函数初始化。
它的构造函数如清单1所示。
许多选项可以被传送到这个构造函数。
类的构造函数应该是延迟的。
执行构造函数的剩余部分。
在构造函数中,您将初始化这两个变量。
然后,通过构造函数的参数来设置选项。
方法和构造函数也可以有不变条件测试。
它只在构造函数内提前读取一次名称空间。
It reads the namespaces only one time in advance in the constructor.
它的构造函数创建共享内存及其中的对象。
Its constructor creates the Shared memory and objects in it.
至少提供一个构造函数。
它们是构造函数的参数。
除构造函数之外,不再提供任何的可变方法。
Do not provide any mutating methods other than the constructor.
请注意,站点的构造函数接受设计器宿主实例。
Note that the site's constructor accepts a designer host instance.
使用ROW和LIST构造函数创建字段列表。
构造函数构建列表,选择函数分解列表。
提供构造函数。
您在构造函数中启用名称空间感知,但我很少这样做。
You can turn on namespace awareness in the constructor, but I rarely do.
建模构造函数、分析构造函数,以及拷贝构造函数。
构造函数注入利用构造函数判断要返回的具体对象类型。
Constructor injection USES a constructor to determine what type of concrete object to return.
在类中添加一个简单的构造函数,如清单2中的构造函数。
Add a simple constructor to the class, such as the constructor in Listing 2.
不必将构造函数的使用限制为间接Enum构造函数调用。
You don't have to limit the use of constructors to indirect Enum constructor calls.
此外,枚举类型支持拥有构造函数、实例方法和变量,等等。
In addition, enumerated types support having constructors, instance methods, and variables, among other things.
应用推荐