DEV Community

Discussion on: What inverts in the dependency inversion principle?

Collapse
 
dvanherten profile image
Dave van Herten

Could it be this:

Before: Copier will break if keyboard renames the Read method.
After: Keyboard will break if IReader interface changes (on behalf of the Copier's needs).

Dependencies are inverted.