本文介绍了在C#中使用接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我对界面有点混乱。我知道接口的定义。但我不清楚何时何地将使用。请任何机构都可以解释一下。



另外一个疑问是,我们是否应该使用接口而没有在类中实现某些方法?因为,该方法不需要所有类的某些类。那些情况我们能做什么?

解决方案



Hi all,

I have a little bit confusion of interfaces. I know definition of the interfaces.But I am not clear about when and where to will be used. Please any body can explain it.

And another doubt is, shall we used interface without implemented some method in to the class?. Because, that method is not need to all that classes either some classes. What can we do that situations?

解决方案



这篇关于在C#中使用接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 15:36
查看更多