📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

What is the main benefit of using interfaces in design?

A. They allow loose coupling and interchangeable implementations ✅
B. They eliminate the need for testing
C. They make code run faster
D. They reduce the number of classes needed

Correct Answer: A. They allow loose coupling and interchangeable implementations

Explanation

  • Interfaces define a contract without implementation
  • Different classes can implement the same interface.