Robert Martin在《敏捷软件开发 原则、模式和实践》中,阐述了 OO设计的5项原则: 1) The Single Responsiblilty Principle 单一职责原则 A class should have only one reason to change. 一个类……