CSC/ECE 517 Fall 2009/wiki3 5 SD: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 3: Line 3:


The Dependency Inversion Principle(DIP) states that:
The Dependency Inversion Principle(DIP) states that:
<li>
<ol>
<ol>High-level modules should not depend on low-level modules. Both should depend on [http://en.wikipedia.org/wiki/Abstraction_(computer_science) abstractions].</ol>
<li>High-level modules should not depend on low-level modules. Both should depend on [http://en.wikipedia.org/wiki/Abstraction_(computer_science) abstractions].</li>
<ol>Abstractions should not depend upon details. Details should depend upon abstractions.</ol>
<li>Abstractions should not depend upon details. Details should depend upon abstractions.</li>
</li>
</ol>

Revision as of 21:56, 11 November 2009

Dependency inversion principle

The Dependency Inversion Principle(DIP) states that:

  1. High-level modules should not depend on low-level modules. Both should depend on abstractions.
  2. Abstractions should not depend upon details. Details should depend upon abstractions.