Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can somebody give a simple definition for Dependency Injection?

Thanks for your time!
Posted
Updated 20-Sep-11 1:16am
v2

Dependency injection (DI) is a design pattern in object-oriented computer programming whose purpose is to reduce the coupling between software components.
Ref:http://en.wikipedia.org/wiki/Dependency_injection[^]

Dependency Injection for Loose Coupling[^]
 
Share this answer
 
Comments
Manfred Rudolf Bihy 20-Sep-11 7:18am    
Looks like you beat me to it! 5+
Sergey Alexandrovich Kryukov 20-Sep-11 17:55pm    
Right place to read about it. It's clearly explained, and the technique is simple. My 5.
--SA
http://en.wikipedia.org/wiki/Dependency_injection[^] should be all you need to read for a first picture.

Best Regards,

—MRB
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Sep-11 17:56pm    
Manfred beaten by Prerak gets 5 -- by the reasons I explained in my comment to the solution by Prerak. :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900