The same is true for abstract methods contracts.
对于抽象方法契约同样如此。
Avoid abstract methods, use interfaces instead.
避免使用抽象方法,而是使用接口代替。
How should Interfaces and Abstract methods be used?
如何使用接口和抽象方法?
There are several abstract methods that must be implemented.
有几个必须实现的抽象方法。
Make sure the Inherited abstract methods option is selected.
确保已选择Inherited抽象方法选项。
An interface only contains abstract methods and constants.
只有一个接口包含抽象方法和常量。
An abstract class may contain abstract methods and accessors.
抽象类别可能会包含抽象方法和存取子。
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.
你可以看到抽象类和抽象方法作为一种合同。
DatastoreUploadServlet won't compile until we implement the abstract methods.
在我们需要实现抽象方法之后,我们才能够成功编译 DatastoreUploadServlet。
Derived classes of the abstract class must implement all abstract methods.
抽象类别的衍生类别必须实作所有抽象方法。
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并且还要覆盖其抽象方法。
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所示的三个抽象方法。每一个方法表示工作流程中的一个步骤。
In the window that displays, specify that you want Eclipse to create the inherited abstract methods.
在显示的窗口中,指明您希望eclipse创建继承的抽象方法。
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 关键字限定,且必须只由一个方法签名组成。
An abstract class that implements an interface might map the interface methods onto abstract methods.
实作介面的抽象类别可能将介面方法对应到抽象方法。
Public superclass methods are usually final: the abstract methods deferred to subclasses are protected.
公用父类方法通常是final的:抽象方法延至子类的是protected的。
Select the check boxes for Constructors from superclass and Inherited abstract methods, and click Finish.
为Constructors fromsuperclass与inheritedabstract methods选择复选框,并点击Finish。
It's an abstract class with public abstract methods all of which must be implemented in the inherited classes.
能够实现允许某个类被继承,但不允许其中的某个方法被覆写么?
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定制的抽象方法组成的。
When the class itself is inherited from an abstract class, but not all base abstract methods have been over-ridden.
抽象类中可以有方法的实现,也可以指定方法的访问修饰符。
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.
继承抽象类的子类必须实现在其父类或自身中声明为抽象的所有抽象方法。
应用推荐