Single Responsibility Principle: There should never be more than one reason for a class to change.
Open Closed Principle: Software entities like classes, modules and functions should be open for extension but closed for modifications.
Liskov Substitution Principle: Functions that use pointers or references to base classes must be able to use objects of derived classes without knowing it.
Law of Demeter: Least Knowledge Principle. Only talk to your immedate friends.
Interface Segregation Principle: Clients should not be forced to depend upon interfaces that they don't use. The dependency of one class to another one should depend on the smallest possible interface.
Dependence Inversion Principle: High level modules should not depend upon low level modules. Both should depend upon abstractions. Abstractions should not depend upon details. Details should depend upon abstractions.
1764



被折叠的 条评论
为什么被折叠?



