The seven principles of the Lee replacement principle, the Lee replacement of the seven
1. Single Responsibility Principle
That is, every class only focuses on one thing.
2. Lee's replacement principle
Sub-classes can replace the position where the parent class appears without affecting software functions.
3. Dependency inversion principle
Implementation depends on abstraction as much as possible without implementation
4. Interface isolation principle
The client should be provided with an independent interface as small as possible, rather than the overall large Interface
5. dimit's Law
That is, the minimum knowledge principle. A software entity should interact with other entities as little as possible.
6. Open and Close principles
That is, the code modification is disabled and the source code extension is enabled.
7. Principles of combination/aggregation Reuse
That is, a class should have an object with less inheritance.