- High-level modules should not depend on low-level modules. Both should depend on abstractions.
- Abstractions should not depend upon details. Details should depend upon abstractions. (See Reference)
Here is some more explanation on DIP with a good example.
No comments:
Post a Comment