Program to an interface, not an implementation.
面向接口编程,而不要面向实现编程。
Program to an interface, not an implementation.
要针对接口编程,不要针对实现编程。
Program to an interface, not an implementation.
针对接口而写编程,不要针对实现。
The first principle is: "Program to an interface, not an implementation."
第一条是:“面向接口编程,而非面向实现编程”。
Even if you program to an interface the implementation class still needs to be instantiated somewhere.
即使您按接口编程,仍然需要在某个地方实例化实现类。
Abstractions should not depend upon details, details should depend upon abstractions. Program to an interface, not an implementation.
抽象不应该依赖于细节,细节应该依赖于抽象,要针对接口编程,不要针对实现编程。
Q. are you still following the principle of Program to an interface if you are creating abstract methods in an abstract class that is not linked to an interface?
问:你还遵循面向接口编程的原则,如果你是一个抽象类,是不是与一个接口创建抽象方法?
If you only have a concrete class, you can create an interface from the class, change your application code to program to the interface, and then proceed as described above.
如果您只有一个具体的类,那么您可以从类中创建一个接口,您的应用程序代码改写为接口,然后按照前面的描述继续进行。
The HTTPR protocol places no constraints on the interface used by an application program to pass messages to its local messaging agent for reliable delivery to a partner application program.
HTTPR协议并没有对应用程序使用的接口作限制。 该接口用来把消息传递给它的本地消息传递代理程序从而实现向伙伴应用程序的可靠传递。
When an application program calls a transaction manager to start a global transaction, the transaction manager can use the xa_ interface to inform resource managers of the transaction branch.
当应用程序调用事务管理器以启动全局事务时,事务管理器可以使用xa _接口通知事务分支的资源管理器。
It was created mainly as an alternative to XSane, a famous GTK + scanning program with a very un-KISS user interface.
它主要是作为XSane,一个著名的基于GTK却没有良好用户界面的程序的替代品。
The program presents an interface similar to the GDM face browser using the Tk GUI generation modules.
该程序将使用TkGUI生成模块呈现类似GDM face浏览器的界面。
The program includes a menu system and supports an easy-to-use user's interface.
该计划包括一个菜单系统,并支持一个易于使用的用户界面。
The program provides an unsophisticated interface with basic functionality, that is easy to use.
该软件提供了一个容易使用的带有基本功能的单纯的界面。
But although the program has an intuitive interface, it is not going to be very easy to use for people that are not familiar with it.
但是,尽管该方案有一个直观的界面,它不会是非常容易使用的人是不熟悉它。
As an interface the avionics full-duplex switched Ethernet (AFDX) end-system provide to application program, AFDX communication ports play an important role in AFDX network information transmission.
航空电子全双工交换以太网(AFDX)通信端口作为AFDX端系统提供给应用程序的接口,对于AFDX网络消息的传递有着重要的作用。
It combines an easy-to-use interface, fun sound effects, and an encouraging cartoon mascot who guides children as they use the program.
它结合了一个易于使用的界面,有趣的声音效果,一个令人鼓舞的卡通吉祥物谁指导儿童使用该程序。
Then, according to the factual characteristic of the finite element Analysis software ANSYS and ABAQUS, an interface program of finite element model transformation is compiled.
并针对有限元分析软件ANSYS与ABAQUS的实际特点,编写了有限元模型转换接口程序,用实例验证了所编接口转换程序的可行性与正确性。
Then, according to the factual characteristic of the finite element Analysis software ANSYS and ABAQUS, an interface program of finite element model transformation is compiled.
并针对有限元分析软件ANSYS与ABAQUS的实际特点,编写了有限元模型转换接口程序,用实例验证了所编接口转换程序的可行性与正确性。
应用推荐