添加的构造函数处理存取顺序选项。
The additional constructor deals with the access order option.
语法规则在其构造函数中定义。
清单1展示了一个示例构造函数。
不要提供一个无参数的构造函数。
没有用于创建记录存储的构造函数。
必须拥有公有的默认构造函数。
最常实现的方法是构造函数方法。
The most commonly implemented of these methods is the constructor method.
原因是该类没有无参数构造函数。
The reason is that the class doesn't have a no-arguments constructor.
查找下面的NULL构造函数。
它们只通过构造函数初始化。
它的构造函数如清单1所示。
最后还有一个问题,构造函数在哪里?
构造函数带有字符串参数—图标名称。
Note that the constructor takes a string argument, the name of the icon.
公共的默认构造函数;例如。
Pattern没有公共的构造函数。
执行构造函数的剩余部分。
在构造函数中,您将初始化这两个变量。
然后,通过构造函数的参数来设置选项。
方法和构造函数也可以有不变条件测试。
运行库不会给类型构造函数第二次机会。
The runtime does not give a type constructor a second chance.
父类中的重写方法不仅局限于构造函数。
Overriding methods in a parent class is not limited to the constructor.
类型构造函数也称为类型初始值设定项。
它只在构造函数内提前读取一次名称空间。
It reads the namespaces only one time in advance in the constructor.
它的构造函数创建共享内存及其中的对象。
Its constructor creates the Shared memory and objects in it.
至少提供一个构造函数。
因此,我们要修改清单6所示的构造函数。
Therefore, let's modify the constructor as shown in Listing 6.
PHP引擎在实例化对象时调用构造函数。
The PHP engine calls a constructor when the object is instantiated.
应用推荐