This decision, however, would lead to a direct dependency and coupling to the vendor's code.
但是,这一决定将导致对供应商代码的直接依赖和耦合。
Reflection, dependency injection, and XML configuration are used to delay binding and reduce coupling.
反射、依赖性注入以及XML配置都可用于延迟绑定和减少耦合。
Strong associations such as inheritance, create a rather tight coupling (and, consequently, a dependency) between the involved parties.
诸如继承这样的强关联产生了相关方之间一定程度的紧耦合(因而具有依赖性)。
Tip in a real project, I would be concerned about tight coupling between classes and introduce interfaces and dependency injection into the application.
提示:在一个实际项目中,我会关注类与类之间的紧偶合情况,并在应用程序中引入接口和依赖性注入。
Tip in a real project, I would be concerned about tight coupling between classes and introduce interfaces and dependency injection into the application.
提示:在一个实际项目中,我会关注类与类之间的紧偶合情况,并在应用程序中引入接口和依赖性注入。
应用推荐