摘要: 一、总览LSP: Liskov Substitution Principle.Functions that use pointers or references to base classes must be able to use objects of derived classes withou... 阅读全文
posted @ 2018-08-15 00:55 六楼的雨 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 一、总览SRP: Single responsibility principleThere should never be more than one reason for a class to change.基本思想:高内聚,低耦合。引起一个类变化的原因只有有一个。即每个类只能负责一个单独的职责,... 阅读全文
posted @ 2018-08-15 00:54 六楼的雨 阅读(8) 评论(0) 推荐(0) 编辑