📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

Which SOLID principle says clients should not be forced to depend on interfaces they do not use?

A. Dependency Inversion Principle
B. Single Responsibility Principle
C. Interface Segregation Principle ✅
D. Open-Closed Principle

Correct Answer: C. Interface Segregation Principle

Explanation

  • Interface Segregation Principle favours small specific interfaces
  • It prevents unnecessary dependencies on unused methods.