In object-oriented design, which principle states that high-level modules should not depend on low-level modules, but both should depend on abstractions?
ADependency Inversion Principle (DIP)
BSingle Responsibility Principle (SRP)
COpen-Closed Principle (OCP)
DLiskov Substitution Principle (LSP)
Explanation
The Dependency Inversion Principle (the ‘D’ in SOLID) ensures high-level policy modules remain decoupled from low-level implementation details.
Exam Relevance
- Topic: Software Architecture
- Subtopic: SOLID Principles

No Comments