类与类,单个包
单一职责原则 (Single Responsibility Principle, SRP)
开放-关闭原则 (Open/Closed Principle, OCP)
里氏替换原则 (Liskov Substitution Principle, LSP)
接口分离原则 (Interface Segregation Principle, ISP)
依赖反转原则 (Dependency Inversion Principle, DIP)
类与包、包与包
重用发布等价原则(Reuse/Release Equivalence Principle,REP)
共同封闭原则 (Common Closure Principle,CCP)
共同重用原则 (Common Reuse Principle,CRP)
无环依赖原则 (Acyclic Dependencies Principle,ADP)
稳定依赖原则 (Stable Dependencies Principle,SDP)
稳定抽象原则 (Stable Abstractions Principle,SAP)