接口和松耦合 [英] interface and loose coupling
本文介绍了接口和松耦合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过在编程语言中使用接口实现松散耦合.. ??给我c#或java示例并正确解释
how loose coupling is achieved by using interfaces in programming languages..??give me c# or java example with proper explanation
推荐答案
使用依赖注入来松散地创建耦合架构。
松散耦合的依赖注入 [ ^ ]
在使用Spring的java中你可以实现依赖注入
希望这有助于
Use dependency Injection for creating loosely coupled architecture.
Dependency Injection for Loose Coupling[^]
In java by using Spring you can implement dependency injection
Hope this helps
这篇关于接口和松耦合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文