单一职责原则:Single Responsibility Principle
There should nerver be more than one reason for a class to change.
接口一定做到单一职责原则,类尽量做到只有一个原因引起变化。
posted on 2016-11-16 20:06 shuimx 阅读(100) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3