Click here to Skip to main content
15,917,971 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!
Updated 20-Sep-11 1:16am

Dependency injection (DI) is a design pattern in object-oriented computer programming whose purpose is to reduce the coupling between software components.

Dependency Injection for Loose Coupling[^]
Share this answer
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[^] should be all you need to read for a first picture.

Best Regards,

Share this answer
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. :-)

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