There
are basically three ways to describe "Why DI?" as given below.
·
We can create the dependency of
components using the new operator.
·
We can look up the dependency of
component by referring to a global variable.
·
We can use the dependency for component
when we needed.
Blogger Comment
Facebook Comment