面向对象设计原则之一:单一职责原则
摘要:
单一职责原则(Single Responsibility Principle SRP) There should never be more than one reason for a class to change. 什么意思呢? 所谓单一职责原则就是一个类只负责一个职责,只有一个引起变化的原因。 阅读全文
posted @ 2017-07-10 22:23 向阳仲伯 阅读(716) 评论(0) 推荐(0) 编辑