Forcing the dependencies on interfaces allows you to provide a variety of implementation classes that implement the interface's contract.
强制对接口进行依赖,可以提供各种实现了接口的合约的实现类。
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.
由于这些类提供的操作相同,您可以使用一个接口来定义一个所有类实现的协定。
Every application should implement the source side of the share contract.
每个应用程序都应该实现分享契约中关于信息来源的那一半。
应用推荐