Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
These principles simply refer to different things. IoC offers a way to organize flow control in the system (who calls whom, why and when), while DIP suggests following a certain direction when organizing dependencies (between modules), based on the level of abstraction of these.
In general, both of them are aimed at improving the qualitative characteristics of the system (and this is really common in them, as in all other OOD principles), only one "approaches the problem" from the behavioral aspects of the system, and the second - from the structural ones .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question