Intermediate
Object-Oriented Programming Concepts
Q50 / 100
What does the "Dependency Inversion Principle" (the D in SOLID) state?
Correct! Well done.
Incorrect.
The correct answer is A) High-level modules should not depend on low-level modules directly; both should depend on abstractions
A
Correct Answer
High-level modules should not depend on low-level modules directly; both should depend on abstractions
Explanation
By depending on abstractions (interfaces) rather than concrete implementations, modules become decoupled and easier to swap or test.
Progress
50/100