1.An Interface’s Implementation Shall Do What Its Methods Says It Does
2.An Interface Implementation Shall Do No Harm
3.If An Implementation Is Unable to Perform Its Responsibilities, It Shall Notify Its Caller
本文阐述了接口实现的三大基本原则:1. 接口的实现应当履行其声明的行为;2. 实现不应造成损害;3. 如果实现无法完成其职责,则应通知调用者。
1.An Interface’s Implementation Shall Do What Its Methods Says It Does
2.An Interface Implementation Shall Do No Harm
3.If An Implementation Is Unable to Perform Its Responsibilities, It Shall Notify Its Caller
1849

被折叠的 条评论
为什么被折叠?