What is the difference between dependency injection and dependency inversion? | Sololearn: Learn to code for FREE!
+ 9

What is the difference between dependency injection and dependency inversion?

Are they the same thing? Are they ways of abstracting out hardware or other interfaces? Are they just fancy names for polymorphism?

11th May 2019, 5:21 AM
Sonic
Sonic - avatar
2 odpowiedzi
+ 2
Dependency injection is one method to achive dependency inversion.
11th May 2019, 6:45 AM
Daniel Adam
Daniel Adam - avatar
+ 2
Hardware abstraction is done by drivers. And no - polymorphism is something completly different.
11th May 2019, 6:46 AM
Daniel Adam
Daniel Adam - avatar