difference between factory pattern and Dependency Injection
can anybody explain indepth, difference between factory pattern and Dependency Injection
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Akkiraju IvaturiPosted Aug 20, 2012, 5:57 PM
So, in a way as said in the previous comment DI is highly evolved form of Factory pattern.
Akkiraju IvaturiPosted Aug 20, 2012, 5:06 PM
In a way, DI is an evolution of Factory Pattern.
The following post may make things clear:
http://codefornothing.wordpress.com/2007/11/11/why-use-dependency-injection/