Dependency Inversion Principle

The Dependency Inversion Principle states that high-level classes should not depend on low-level classes; instead, high-level classes should depend on an abstraction that low-level classes implement.

The following are the benefits of this principle: 

  • Components are more decoupled.
  • The system becomes more flexible and can adapt to changes more easily. Low-level components can be replaced without affecting high-level components.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.150.163