Ask Question
2 August, 09:27

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

+5
Answers (1)
  1. 2 August, 10:56
    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?
Get an answer to your question ✅ “What is the Explicit Dependencies Principle? Explain why explicit dependencies are better than implicit dependencies. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers