Ask Question

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

+5
Answers (1)
  1. 17 July, 12:12
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers