互联网 patron No comments

OOD SOLID设计原则

S – Single responsibility principle(一个类只负责一项职责)
O – Open/closed principle(实体应开放扩展但封闭修改)
L – Liskov substitution principle(父类可被子类替换)
I – Interface segregation principle(避免无用接口)
D – Dependency inversion principle(实体应依赖于抽象)