Thursday, May 28, 2009

Inversion of Control

IOC is a kind of design principle; stands for abstraction of implementations from user. For example there exists a number of implementations of Interface pizzaDelivery().
One of them makes pizza in 20 minutes and the other makes in 50 minutes but both of them makes pizza. We call the interface and never think about the implementation and wait for the process to be completed, may be an example of IOC principle. By using this, we develop our codes by not caring about other peoples code or implementation. And by this we can focus on our active work, and build up a layered architecture.