对于类库来讲,可能没有一个单一接口与之通信,但往往却有‘public’API(可能被用到)和‘private’package(文档中说明了其用途)。
They may not all have a single interface to communicate with, but often will have ' public' APIs (which should be used) and ' private' packages which have documented use cases.
任何时候,当你需要配置类之间通信的时候,当你渴望得到比接口具有更低耦合性的时候,委托都是正确的选择。
Any time you need to configure the communication between classes and you desire less coupling than you get from interfaces, a delegate is the right choice.
用户接口设备(HID)配置文件描述了如何使用蓝牙链接与HID类设备通信。
The human interface device (HID) profile describes how to communicate with a HID class device using a Bluetooth link.
I2C总线由于接口简单、协议完善,已经被广泛地应用在消费类电子产品、通信产品和工业电子产品中,成为国际标准。
For its simple interface and integral protocol, I2C has become an international standard, which is widely used in consumer electronics, communication products and industrial products.
通过类接口实现对各个层次的封装,使各个模块之间通过函数接口通信,而不必知道具体实现过程。
Also by the use of designing interface class of module in the system, each module can communicate through function interface without know the specific realization.
通过类接口实现对各个层次的封装,使各个模块之间通过函数接口通信,而不必知道具体实现过程。
Also by the use of designing interface class of module in the system, each module can communicate through function interface without know the specific realization.
应用推荐