Ask Question
15 May, 15:51

What is the Explicit Dependencies Principle? Explain why explicit dependencies are better than implicit dependencies.

+1
Answers (1)
  1. 15 May, 19:48
    0
    Explicit Dependencies

    It states that the classes and methods should explicitly require, via constructor or method parameters all the collaborating objects that are required for the function to work properly.

    Classes with the implicit dependencies cost very high for the maintenance than the explicit dependencies.

    Even, the implicit dependencies are difficult to test as they are tightly coupled to their collaborators.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the Explicit Dependencies Principle? Explain why explicit dependencies are better than implicit dependencies. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers