Because the compiler will only allow you to implement an interface.
因为编译器只允许你实现接口。
Once you create the project, to implement an interface, you must first add an ATL object.
创建项目后,要实现接口,必须先添加atl对象。
The downside is that to implement an interface, you must implement all the specified methods.
最后阶段是实现接口,您必须实现所有指定的方法。
Therefore, all our strategies need to do is to implement an interface with one single method - Execute.
因此,我们所有的战略需要做的是实施单一的方法-执行一个接口。
A class is said to implement an interface when it contains implementations for all the members defined in an interface.
当一个类含有在一个接口中定义的所有成员的实现时,称这个类实现了一个接口。
To implement an interface, you must have created a project as an ATL COM application or as an MFC application that contains ATL support.
若要实作介面,您必须先将专案建立为atlCOM应用程序或是包含ATL支援的MFC应用程序。
An alternate method of writing an adapter - and one that some prefer - is to implement an interface to adapt behavior, rather than extending an object.
编写适配器的替代方法——并且是推荐方法——是实现一个接口来修改行为,而不是扩展对象。
As it's usually better to define types in interfaces rather than classes, the Template Method pattern is often used as a strategy to implement an interface.
由于通常定义接口比定义类更好,模板方法模式通常被用于实现接口的策略。
The other part is to implement an interface to accept SQL queries from the user, execute those queries and build an XHTML web page with embedded SVG elements.
另一部分是实现一个接口,以便接受来自用户的SQL查询,执行那些查询,并构建一个包含嵌入的SVG元素的XHTMLweb页面。
To implement an interface member, the corresponding member on the class must be public, non-static, and have the same name and signature as the interface member.
若要实作介面成员,对应的类别成员必须是公用、非静态,而且具有与介面成员相同的名称和签章。
In most cases, it is easier to extend DefaultHandler and override the methods that are relevant for the application rather than to implement an interface directly.
在大多数情况下,为应用程序扩展DefaultHandler并覆盖相关的方法要比直接实现一个接口更容易。
As the operations offered by the classes are the same, you can use an interface to define a contract that all of your classes implement.
由于这些类提供的操作相同,您可以使用一个接口来定义一个所有类实现的协定。
A class and an interface differ: a class can have an actual instance of its type, whereas an interface must have at least one class to implement it.
一个类和一个接口不同:一个类可以有它形态的真实实例,然而一个接口必须至少有一个类来实现它。
This method has slightly more cost in terms of effort to implement than when you start with an interface.
这种方法比选择接口作为开始在执行的工作量方面稍微多花些成本。
A fully qualified interface name is used as an additional search parameter in order to ensure that a reference to service implement an interface, required by a consumer 1.
使用一个全限定接口名称作为一个额外的查找参数,这样可以用来保证一个指向的接口服务实现的引用满足客户要求1。
You could also use an application object to implement the Resource interface to support dynamic properties.
您还可以使用一个应用程序对象来实现Resource接口以支持动态属性。
An inner class is added to implement the MqttSimpleCallback interface, and the registration of that handler.
添加内部类以实现MqttSimpleCallback接口和回调处理程序的注册。
To implement this portlet, first define an interface to abstract the implementation details of the message store (Listing 2).
为了实现这个portlet,首先要定义一个接口以对消息存储器的实现细节进行抽象(清单2)。
Derived classes are not required to re-state that they implement an interface from their base class, but are permitted to do so. (This case is special; see below for more details.)
派生类可以指明它实现了其基类的接口,但是并不是一定要这么做。
One way of representing relationships like this is to create an interface, Motorized, which Automobile and Bus would implement, but RowBoat would not.
有一种方法可以表示这种关系,即创建一个名为Motorized的接口,Automobile和Bus都实现这个接口,但是RowBoat不实现。
First of all, you can provide an interface that the proxy needs to implement and access the proxy from the client application through that interface.
首先,你可以提供一个代理需要实现的接口,并通过该接口从客户端应用程序中访问代理。
If the coordinator desires a different interface, it can attempt to implement an adapter that converts the interface it wants to the interface the mock implements.
如果协调程序需要不同的接口,则可以尝试实现一个适配器,来将其所希望的接口转换为模拟实现的接口。
Using the JAAS interface for application security can dramatically reduce the effort required to implement an effective security layer and simultaneously increase the safety of the system.
对应用程序安全使用JAAS接口能显著减小实现有效安全层所需的努力,并同时增加系统的安全性。
Another helpful addition to PHP V5 is the abstract class, which makes it easy to have one base class to implement the core of an interface from which you then create concrete classes.
PHPV 5中另一个有帮助的新功能是抽象类,使用抽象类可以轻松地用一个基类实现接口的核心部分,然后用该接口创建实体类。
An interface used to implement a policy to customize deletion of stale commits from the index directory.
该接口用来实现从索引目录中定制删除过时提交的策略。
In the EJB 2.1 specification, this has been relaxed so that an MDB can implement any interface, as long as you can find someone prepared to deliver messages to it!
在EJB 2.1规范中,已经不再严格要求了,因此MDB可以实现任何接口,只要有人准备好向它传送消息!
There are no more callbacks to implement as part of an interface.
接口中再也没有实现回调函数。
Application authors typically subclass AbstractViewController to implement a part of the user interface, such as an input screen or dialog.
通常,应用程序作者子类化abstractviewcontroller,以实现用户界面的一部分,如输入屏幕或对话框。
Application authors typically subclass AbstractViewController to implement a part of the user interface, such as an input screen or dialog.
通常,应用程序作者子类化abstractviewcontroller,以实现用户界面的一部分,如输入屏幕或对话框。
应用推荐