必需的第二项更改是(至少)构造一个保存传递给 Collaborator 类的构造函数的参数实际值的对象数组。
The second change required is to construct (at the very least) an object array holding the actual values of parameters to be passed into the Collaborator class' constructor.
该类型实际定义了指定用于类和值的匹配序列的构造器的签名。
This type actually defines the signature of a constructor for the specified class and a matching sequence of values.
两个版本的构造方法实际上都是相类似的,除了存储值的格式之外,如清单3所示。
The constructor methods for both versions are virtually identical, except for the format of values being stored, as shown in Listing 3.
应用推荐