How can the Dependency Inversion Principle be employed to minimize the impact of changes in lower-level modules on high-level modules?
- It can't be used for this purpose
- By making high-level modules dependent on low-level modules
- By minimizing the use of interfaces
- By inverting the dependencies
The Dependency Inversion Principle (DIP) suggests inverting the traditional dependency relationship, where high-level modules should not depend on low-level modules directly. Instead, both should depend on abstractions (interfaces). This inversion reduces the impact of changes in lower-level modules on high-level modules because high-level modules only depend on abstract interfaces, making them more stable.
Loading...
Related Quiz
- Verification is typically performed by the ______ team, while validation is typically performed by the ______ team.
- Envision a situation where an API is expected to handle a large number of requests per second. Discuss how API caching mechanisms might be employed to enhance performance without overburdening the backend systems.
- Which of the following is a legitimate use of reverse engineering in software development?
- The _______ model is an approach to software evolution that focuses on incremental development and operational prototyping.
- What is the primary goal of Software Quality Assurance (SQA)?