如果正常类包含抽象方法,则可以创建该类的对象,可以调用抽象方法就像普通的方法。
If the normal class contains abstract method, then one can creating the object for that class and may call the abstract method just like normal method.
我们以特定的方式编写代码,以调用抽象方法,使某个基础隐藏逻辑负责将请求调度到恰当的实现,如下所示。
We write our code in such a way that we invoke some abstract method, and some underlying, hidden logic is responsible for dispatching the request to an appropriate implementation, as follows.
所有的服务实现支持同一个抽象接口,这样客户机就可以用完全相同的方法来调用它们中的每一个。
All of the service implementations support the same abstract interface, so that clients can invoke each of them in the exact same way.
rpc式集成使用WSDL来进行一个“常规”方法调用,并将其抽象出来发送到SOAP。
The RPC-style integration USES WSDL to take a "regular" method call and abstract it out to SOAP.
因此,我们将RESTful服务的结果保存到测试文件内,并创建了一个抽象方法来获得给定REST调用的URL。
Therefore, we saved the RESTful service results into test files, and created an abstraction method to obtain the URL for a given REST call.
在清单2中,代码首先包含了MDB2_Schema包所需的类文件,然后通过调用其静态方法factory以初始化mdb2抽象层。
In Listing 2, the code first includes the necessary class file for the MDB2_Schema package, and then initializes the MDB2 abstraction layer by calling its static factory method.
组合方法(Composed method):方法中调用其他方法,而且这些被调用的方法基本上处于同样的抽象层次。
Composed method: methods call out to other methods, each of which are roughly the same level of abstraction.
容器能够重载一个抽象(或者具体)的方法来在方法被调用时返回执行getBean()调用的结果。
The container can override an abstract (or concrete) method to return the result of performing a getBean() call at the time when the method is invoked.
但是如果你有一个摘要方法一非抽象班,你可以实例化类和对象,将未实现的方法,你将无法调用。
However if you had an abstract method in a non-abstract class, you could instantiate the class and get an object, that would have an unimplemented method, which you would be unable to call.
象征主义是西方现代派文学的一种,强调用象征方法表达作者的思想情绪和抽象的人生哲理。
Symbolism is one form of western modern literature, which underscores the application of symbolism to the expressions of author's feelings and emotions and abstract life philosophy.
它的子类可以按需要重写方法实现,但调用将以抽象类中定义的方式进行。
Its subclasses can override the method implementation as per need but the invocation is to be in the same way as defined by an abstract class.
它的子类可以按需要重写方法实现,但调用将以抽象类中定义的方式进行。
Its subclasses can override the method implementation as per need but the invocation is to be in the same way as defined by an abstract class.
应用推荐