The same is true for abstract methods contracts.
对于抽象方法契约同样如此。
There are several abstract methods that must be implemented.
有几个必须实现的抽象方法。
Make sure the Inherited abstract methods option is selected.
确保已选择Inherited抽象方法选项。
Notice that an abstract class is denoted by italicized text, as are abstract methods.
注意,抽象类和抽象方法用斜体表示。
To use an ABC, a subclass must inherit from the ABC and override its abstract methods.
要使用ABC,子类必须继承自此 ABC并且还要覆盖其抽象方法。
Avoid abstract methods, use interfaces instead.
避免使用抽象方法,而是使用接口代替。
Why can abstract methods only be declared in abstract classes?
为什么抽象方法只在抽象类中声明?
An abstract class can have both abstract and non abstract methods.
抽象类可以有抽象和非抽象方法。
You can see abstract classes and abstract methods as a sort of contract.
你可以看到抽象类和抽象方法作为一种合同。
Implement standard OOP features like private constructors, abstract methods and classes.
实现标准的面向对象功能,比如:私有构造函数、抽象方法和抽象类等。
You can declare standard and abstract methods in an abstract class, as shown in Listing 5.
可以在抽象类中声明标准和抽象方法,如清单5所示。
The interface body can contain abstract methods, default methods, and static methods.
接口主题可以包含抽象方法、默认方法和静态方法。
Next, add the three abstract methods in Listing 4. Each one represents a step in the workflow.
接下来,添加清单4所示的三个抽象方法。每一个方法表示工作流程中的一个步骤。
To use this implementation you must derive from this class and implement the abstract methods.
若要使用此实现,必须从此类派生并实现抽象方法。
In the window that displays, specify that you want Eclipse to create the inherited abstract methods.
在显示的窗口中,指明您希望eclipse创建继承的抽象方法。
The documentation for each non-abstract methods in this class describes its implementation in detail.
文档对该类的每一个非抽象方法描述了实现细节。
Select the check boxes for Constructors from superclass and Inherited abstract methods, and click Finish.
为Constructors fromsuperclass与inheritedabstract methods选择复选框,并点击Finish。
As mentioned earlier, all CRUD methods are candidates for container-managed methods since they are abstract methods.
正如前面所提到的,由于CRUD方法是抽象方法,因此所有的CRUD方法都是容器管理方法的候选方法。
Then we'll work through the servlet implementation, which consists of three abstract methods customized for Bigtable.
然后我们将完成Servlet实现,它是由三个专门为Bigtable定制的抽象方法组成的。
It contains abstract methods whose sole implementation purpose is to perform the CRUD operations on the underlying table.
它包含一些抽象方法,实现这些方法的惟一目的是在底层表上执行CRUD操作。
A child class that extends an abstract class must implement all abstract methods in its parent or itself be declared abstract.
继承抽象类的子类必须实现在其父类或自身中声明为抽象的所有抽象方法。
The abstract methods deal specifically with saving and loading data to a physical data store, and with data store administration.
这些抽象方法专门处理在物理数据存储区中的数据保存、数据加载和数据存储区管理。
Note abstract methods can only be defined in abstract classes. If you attempt to do otherwise, you will be issued a compiler error.
说明抽象方法只可以定义在抽象类中。如果不是这样的话,就会收到编译错误。
The class provides a series of static and abstract methods to work with one of the two sets of preferences: one for user preferences and one for system preferences.
这个类提供了一系列静态和抽象方法来操作两套首选项(其中一套是用户首选项,另一套是系统首选项)中的其中一套。
The Template Method pattern defines the skeleton of an algorithm in a base class, using abstract methods and overriding to defer individual details to child classes.
TemplateMethod模式定义了基类算法的骨架,使用了抽象方法和覆盖将具体细节放到子类中。
Most of the previous automatic abstract methods are based on word counting, which misses deep semantic analysis of texts, so the generated abstract is unsatisfying.
传统的自动摘要提取方法基于词频统计提取摘要句,对文本不进行语义分析,导致摘要质量不高。
How should Interfaces and Abstract methods be used?
如何使用接口和抽象方法?
Abstract methods have the following features: An abstract method is implicitly a virtual method.
抽象方法具有以下特点:抽象方法是隐式的虚方法。
Abstract methods must be qualified by the abstract keyword and must consist of a method signature only.
抽象方法必须用abstract 关键字限定,且必须只由一个方法签名组成。
Abstract methods must be qualified by the abstract keyword and must consist of a method signature only.
抽象方法必须用abstract 关键字限定,且必须只由一个方法签名组成。
应用推荐