Click Finish to generate the new class.
单击Finish以生成新类。
Figure 1 shows the new class diagram.
图1显示新的类关系图。
And so summer in the new class began well.
因此,在这个新的班级度过的这个夏天开始就一帆风顺。
The new class should look like that in Listing 9.
这个新类应该像清单 9 这样。
Select New=>class to start the New Class wizard.
选择New=>class,以启动 New Class向导。
A dialog box displays, requesting the name of the new class.
这时会出现一个对话框,要求输入新类的名称。
If you double-click the new class glyph, you see a screen like this.
如果双击这个新类图标,就会看到屏幕变成如下所示。
This will launch the New Class wizard shown here earlier in Figure 21.
这将启动New Class向导早期在图21中有所显示。
You can invoke the New class wizard and use it to create the class file.
您可以启动New Class向导,并使用它来创建类文件。
When I have completed writing the new class, then I run the unit tests again.
当我完成新类的编写时,我将再次运行单元测试。
The new class uses the with keyword to add the Subject trait to the class.
新的类使用了with 关键字把Subjecttrait 加到类中。
Eclipse generates the new class with default return values for non-void methods.
eclipse为非void的方法产生带有默认返回值的新类。
Type a name for the new class diagram. (for this example, use the name Main.)
为新的类图键入一个名字(对于这个实例,使用名字Main。)
This invokes the New class wizard, which you can use it to create the class file.
这将调用New Class向导,您可以使用该向导来创建类文件。
On the client side, you just register the new class instead of both of the classes.
在客户端,只注册这个新类,不需要注册两个类。
The new class sets up a Form object in the constructor and adds a field to it for input.
这个新类在构造方法中创建一个Form对象,在其中添加一个用于输入的字段。
This class object becomes the basis for all instances of the new class created by the JVM.
这个Class对象成了JVM创建新类的所有实例的基础。
Use the standard Eclipse mechanism to add a class with the new class wizard, as in Figure 19.
可以使用标准的Eclipse机制,用新建类向导添加类,如图19所示。
Package the new class in the jar and make the jar available to the MDM Server enterprise application.
把新的类打包在jar文件中并让MDMServer企业应用程序可以使用这个jar文件。
If a Person class hasn't been added to the model yet, it asserts the new class as an instance of owl: class.
如果person类还没有添加到模型中,它将断言一个新类作为owl: Class的实例。
This time in the new class wizard, we'll declare our new class in the same namespace, but call it MegaLottery.
这次在New Class向导中,我们将在同一个名称空间中声明新类,但是把它称为MegaLottery。
Notice that this example includes the constraint that the new class OurNews extends an external class called ThirdPartyNews.
注意,本例包括约束,即新类OurNews继承一个叫做ThirdPartyNews的外部类。
Whenever you define a new class as an extension of an existing one, the new class is said to be a subclass of the original.
任何时候你定义一个新类继承自已有的类,这个新类就叫做已有那个类的子类。
You also have to make sure that the Access class knows about the new class, so we will add extra functionality there as well.
此外,你还要保证Access类知道这个新类,所以我们也要对Access类增加额外的功能。
You can also change the default files to be created and specify a namespace to which this class belongs in the New class wizard.
您还可以在New Class向导中更改创建的默认文档,确定这个类所属的字段名。
When a class changes, the system automatically loads the new class and the application state is maintained in the running application.
当一个类发生改变时,系统会自动加载新的类同时保持应用的运行状态。
After we have the handle to the StorageComp object, we use it to register the new class as a listener for the Server Storage service.
获得了StorageComp对象的句柄后,我们使用它将新类注册为ServerStorage服务的侦听器。
You could further customize the new class by adding another method, perhaps called disk_alert (self), which would E-mail flagged messages.
通过添加另一个通过电子邮件来发送标记消息的方法,也许是将其命名为disk_alert (self),这样就可以进一步自定义新类。
You learned how to define new properties and call corresponding functions in the superclass and how to use the new class in your application code.
您也学习了如何定义新的属性,在子类中调用相应函数,以及如何在您的应用程序代码中使用这个新类。
To fix the problem, remove line 23 from the above code, recompile the stored procedure, and move the new class file to the sqllib\function folder.
要纠正这个问题,可以从上面的代码中删除第 23行,重新编译存储过程,并且将新的类文件转移到sqllib\function文件夹。
应用推荐