设计模式之设计原则
1、单1职责原则(Single Responsibility Principle:SRP)
2、里氏替换原则(Liskov Substitution Principle:LSP)
3、依赖颠倒原则(Dependence Inversion Principle:DIP)
4、接口隔离原则(Interface Segregation Principle:ISP)
5、迪米特原则(Law of Demeter : LoD)
6、开闭原则(Open-Closed Principle:OCP)