📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

Which SOLID principle says high-level modules should depend on abstractions, not on concrete details?

A. Liskov Substitution Principle
B. Single Responsibility Principle
C. Dependency Inversion Principle ✅
D. Open-Closed Principle

Correct Answer: C. Dependency Inversion Principle

Explanation

  • Dependency Inversion Principle inverts the dependency direction
  • Both levels depend on abstractions, improving flexibility.