有几个必须实现的抽象方法。
There are several abstract methods that must be implemented.
对于抽象方法契约同样如此。
注意,抽象类和抽象方法用斜体表示。
Notice that an abstract class is denoted by italicized text, as are abstract methods.
这在API被声明为抽象方法时尤其重要。
This is especially important when APIs declare abstract methods see, e.g.
确保已选择Inherited抽象方法。
有很多种抽象方法可以把这些元素视为组件
There are a number of abstract ways that we can look at these elements as components
请记住,您需要为类添加必要的继承抽象方法。
Remember that you need to add the necessary inherited abstract methods for your class.
为什么抽象方法只在抽象类中声明?
Why can abstract methods only be declared in abstract classes?
确保已选择Inherited抽象方法选项。
Make sure the Inherited abstract methods option is selected.
声明抽象方法的任何类本身必须是声明为抽象的。
Any class that declares an abstract method must itself be declared abstract.
可以在抽象类中声明标准和抽象方法,如清单5所示。
You can declare standard and abstract methods in an abstract class, as shown in Listing 5.
确保已选择Inherited抽象方法,如图3所示。
Make sure that Inherited abstract methods is selected as shown in figure 3.
抽象方法processresponse由子类实现。
The abstract method processResponse will be implemented by the sub-classes.
函数式编程的核心是函数,就像面向对象语言的主要抽象方法是类。
At the core of functional programming is the function, just as classes are the primary abstraction in object-oriented languages.
目前的计划和目标是lambdas有助于"单一抽象方法"接口。
The current plans and proposals for lambdas favor "single abstract method" interfaces.
在显示的窗口中,指明您希望eclipse创建继承的抽象方法。
In the window that displays, specify that you want Eclipse to create the inherited abstract methods.
实现标准的面向对象功能,比如:私有构造函数、抽象方法和抽象类等。
Implement standard OOP features like private constructors, abstract methods and classes.
要使用ABC,子类必须继承自此 ABC 并且还要覆盖其抽象方法。
To use an ABC, a subclass must inherit from the ABC and override its abstract methods.
继承抽象类的子类必须实现在其父类或自身中声明为抽象的所有抽象方法。
A child class that extends an abstract class must implement all abstract methods in its parent or itself be declared abstract.
另一个能证明重构多么智能的例子是:创建一个接口,它声明了一个抽象方法。
Another example how intelligent a refactoring should be: Create an interface which declares an abstract method.
所有的CRUD方法都是抽象方法,这使得它们成为容器管理方法的候选方法。
All the CRUD methods are abstract, making them candidates for container-managed methods. The following steps summarize how to develop and deploy a container-managed method in a CMP bean.
它包含一些抽象方法,实现这些方法的惟一目的是在底层表上执行CRUD操作。
It contains abstract methods whose sole implementation purpose is to perform the CRUD operations on the underlying table.
一个抽象方法所说的是这样的:其他方法宣布这个班没有这一毫无意义。
What an abstract method says is this: the other methods declared in this class make no sense without this one.
接下来,添加清单4所示的三个抽象方法。每一个方法表示工作流程中的一个步骤。
Next, add the three abstract methods in Listing 4. Each one represents a step in the workflow.
因为act是一个抽象方法,我们不需要显式地用override关键字来重写。
Because act is an abstract method, we don't need to explicitly override it with the override keyword.
抽象方法必须用abstract 关键字限定,且必须只由一个方法签名组成。
Abstract methods must be qualified by the abstract keyword and must consist of a method signature only.
这是另一种有用的工程抽象方法,但该方法增加了额外的查询和方法分配,损害了性能。
This is another useful engineering abstraction that can impose extra lookups and method dispatch, hurting performance.
如果用户想利用存储过程在CMPbean中开发数据逻辑方法,必须将该方法定义为抽象方法。
If you want to develop a data logic method in a CMP bean that USES a stored procedure, you must define this method as an abstract method.
在这个例子中,我们没有在被注入者中定义一个实例变量,而是定义了一个返回所需对象的抽象方法。
In this case we do not define an instance variable in the injectee, but an abstract method returning the required object. The method may be public or protected
只需覆盖BridgeFactory中的每个抽象方法,并适当地将它改为返回true或false。
Simply override each abstract method in BridgeFactory, and change it to return true or false, as appropriate.
应用推荐