Inversion of Control vs Dependency Injection
IoC is a generic term meaning rather than having the
application call the methods in a framework, the framework calls
implementations provided by the application.
DI is a form of IoC, where implementations are passed into an object through constructors/setters/service look-ups, which the object will 'depend' on in order to behave correctly.
DI is a form of IoC, where implementations are passed into an object through constructors/setters/service look-ups, which the object will 'depend' on in order to behave correctly.
Comments
Post a Comment