The following examples illustrate adding a keyed reference to an identifier bag with and without using the new methods.
下面的示例说明了如何在使用和不使用新方法的情况下向标识符包添加一个用键值标识的引用。
Thus, you can call the add and steps methods without using the recipe host object if you call them with recipe.instance_eval, which is what the consists_of method does.
因此,如果您与recipe . instance_eval一起调用add和steps方法,则您可以在不使用recipe主机托管对象的情况下调用它们,这就是consists _ of方法要做的。
In the second page of the wizard (shown in Figure 7), you can optionally specify whether to generate public or protected fields and with or without public accessor methods.
在该向导的第二个页面(如图7所示),可以指定生成public还是protected字段,是否包含public访问方法。
应用推荐