An interface can be defined as.
接口可按如下形式定义。
An interface can extend other interfaces, just as a class subclass or extend another class.
接口可以继承其它接口,就像子类或继承其它类一样。
An interface can specify methods, properties, events, and indexers for classes to implement.
一个接口可以为将要实现的类指定方法、属性、事件、和索引器。
However, whereas a class can extend only one other class, an interface can extend any number of interfaces.
然而,类只能继承一个类,而接口可以继承多个接口。
An interface can be declared with any accessibility, but interface members must all have public accessibility.
接口可以用任何可访问性来声明,但接口成员必须全都具有公共可访问性。
Additionally, altering the static structure of an interface can have undesirable side effects if not approached with caution: One must ensure that all implementers of the target interface are found.
另外,如果不谨慎处理,改变一个接口的静态结构将出现很多不希望的副作用:必须找到目标接口的所有实现者。
You control it by touching the screen - an intuitive interface that even a toddler can figure out.
你通过触摸屏幕控制它-一个直观的界面甚至一个三岁小孩也能控制它。
I choose to wrap the DAO in an interface, so I can switch my data access layer to use different persistence strategies.
我选择将这个dao封装在一个接口中,这样我就能够切换数据访问层来使用不同的持久性策略。
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.
首先,你可以提供一个代理需要实现的接口,并通过该接口从客户端应用程序中访问代理。
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.
由于这些类提供的操作相同,您可以使用一个接口来定义一个所有类实现的协定。
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.
如果协调程序需要不同的接口,则可以尝试实现一个适配器,来将其所希望的接口转换为模拟实现的接口。
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.
一个类和一个接口不同:一个类可以有它形态的真实实例,然而一个接口必须至少有一个类来实现它。
An elegantly designed user interface can put a gadget head and shoulders above its peers.
一款精心设计的用户界面可以令该装置在领先基础上更添体面。
Build an interface everyone can start looking at, using, clicking through, and "feeling" before you start worrying about back-end code.
在你开始担心后台代码之前,要建立一个人人都可以看得见的,使用的,点击访问的,并且可以“感受到的”界面。
They expose an interface through which clients can access various services, or methods.
它们公开一个接口,通过这个接口客户机可以访问各种服务或者方法。
Then you can work with the business to define the interface and write an API that the developers can rely on.
接着,你就可以根据业务定义接口,书写开发者可以依赖的API。
If you think of an extension point as an interface, you can think of an extension as a class that implements that interface.
如果将扩展点看作接口,那么扩展就是实现该接口的类。
An enhanced user interface that you can use to select a template parameter value to improve usability.
一个增强的用户界面,您可以使用它来选择一个模板参数值以提高实用性。
This user interface can be an API or a web service interface or both.
这个用户接口可以是一个API或者一个web服务接口,或者两者兼而有之。
As the comments of this interface indicate, you can access an attribute by either its name or its index.
正如本接口的注释所表明的,可以通过属性的名称或者其索引访问它。
For DI to work, you must have an interface whose concrete class you can inject into the consumer of the behavior you desire.
为了让DI工作,必须拥有一个接口,可以把这个接口的具体类注入到需要的行为的消费者中。
By providing an interface class, we can support other variations of the search operations required by the search application.
通过提供一个接口类,可以支持该搜索应用程序所需的搜索操作的其他变体。
Requirement for deployed applications: You cannot begin testing until there is a deployed application with an HTTP interface that can be invoked for testing.
部署应用程序的必要条件:只有当一个带有http界面的部署应用程序可以被测试调用时,您才可以进行测试。
The behavior that you need is common so it can be expressed using an interface that each feed retriever that you create can implement.
您需要的行为是常见的,因此可以使用您创建的每个提要检索器都可以实现的接口来表达它。
If Sony wants to compete with Apple, consumers need an interface that can present more information and give easier access to that information than their current UI.
如果索尼想要与苹果竞争的话,消费者就需要有一个比他们目前更能得到更多信息和更方便的用户界面。
Used carefully, the option of updating an interface on the fly can simplify that interface dramatically; presenting a menu only when its options apply, for instance, can be easier for users.
如果小心地使用,动态更新界面的选项能够极大地简化该界面;例如,只有应用菜单的选项时,用户才能容易地显示菜单。
The binding can also optionally reference an interface.
该绑定还可以选择引用某个接口。
JNDI is not an LDAP-specific interface; you can have a JNDI implementation for any type of directory service.
JNDI不是特定于LDAP的接口,因此可以拥有针对任何目录服务类型的JNDI实现。
JNDI is not an LDAP-specific interface; you can have a JNDI implementation for any type of directory service.
JNDI不是特定于LDAP的接口,因此可以拥有针对任何目录服务类型的JNDI实现。
应用推荐