Friday, 6 July 2012

What is the Dependecy Inversion Principle?

High-level modules should not depend on low-level modules. Both should depend on abstractions
We should always decouple high level module from low level modules by introducing an abstraction layer between the two. Gang Of four Patterns include Factories and Abstract Factories. Abstractions should not depend on details. Details should depend on abstractions.

No comments:

Post a Comment