摘要:
一、总览LSP: Liskov Substitution Principle.Functions that use pointers or references to base classes must be able to use objects of derived classes withou... 阅读全文
摘要:
一、总览SRP: Single responsibility principleThere should never be more than one reason for a class to change.基本思想:高内聚,低耦合。引起一个类变化的原因只有有一个。即每个类只能负责一个单独的职责,... 阅读全文