DIP - The Dependency Inversion Principle
A. High Level Modules should not depend upon low level modules. Both should defend upon
abstractions.
B. Abstractions should not depend upon details. Details should depend upon abstraction.
Use : Strategy Pattern
没有评论:
发表评论