samedi 27 août 2016

Dependency Inversion Principle's second statement elaboration

Following two statements are core of the Dependency Inversion Principle(DIP):

"High-level modules should not depend on low-level modules. Both should depend on abstractions." "Abstractions should not depend on details. Details should depend on abstractions."

I read different books and article about DIP; all of them explained the first statement but none of them explain the second statement: "Abstractions should not depend on details. Details should depend on abstractions". Please explain what exactly are the meaning of this second statement.

Aucun commentaire:

Enregistrer un commentaire