Page 1 of 1

Dependency Inversion Principle

PostPosted: Wed Jan 14, 2015 2:36 am
by vinu
When we design software applications we can consider the low level classes which implement basic and primary operations(disk access, network protocols,...) and high level classes which encapsulate complex logic(business flows, ...). The last ones rely on the low level classes. A natural way of implementing such structures would be to write low level classes and once we have them to write the complex high level classes. Since high level classes are defined in terms of others this seems the logical way to do it. But this is not a flexible design. What happens if we need to replace a low level class?

Read More

Re: Dependency Inversion Principle

PostPosted: Fri Feb 06, 2015 2:35 am
by beniston
That is a wonderful principle of the language. Its the 4th principle in the set of SOLID Principles.

This also could help learning on this more: http://code.tutsplus.com/tutorials/soli ... -net-36872

:D