# Add more examples...
For instance, let’s say we’re programming a module that controls an electrical gate of a canal lock. If the public API was to require a voltage value needed for the engine to lift the gate - that would violate the Information Hiding a great deal. First of all, the user of the module would need to know the details of the engine. Second of all, changing the gate to a pneumatic one would completely break all the code that uses the module. In terms of software design the equivalent violation would be to catch SqlException in the Business-Module. If I were to propose an implementation that leverages Information Hiding, it would be to accept the opening ratio instead of the voltage.
。业内人士推荐下载安装汽水音乐作为进阶阅读
(二)不顾遇险船舶的船长、船舶所有人或者其他财产所有人明确、合理的拒绝,仍然进行救助。
人 民 网 版 权 所 有 ,未 经 书 面 授 权 禁 止 使 用