How Dependency inversion is an extension of OCP?

Published: 1/02/2018
How Dependency inversion is an extension of OCP?
Source: SOFTWAREENGINEERING.STACKEXCHANGE.COM

I am reading about SOLID principles and have just read that DI is an extension to OCP. How is that exactly meant, if OCP is about making class extensible without touching the original code, basically.

Read more
Related news
Comment
FACEBOOK