为什么我们需要c#中的接口 [英] Why do we need interface in c#
本文介绍了为什么我们需要c#中的接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请让我知道为什么我们需要简单示例的界面...因为
i真的没有时间使用它....它是如何产生差异的..
Hi,
Please let me know why do we need interface with simple example...as
i really didn"t get when to use it....how does it makes difference..
推荐答案
接口C#(初学者) [ ^ 来自CP的文章可能对你有所帮助。
Interfaces in C# (For Beginners)[^]article from CP might help you.
见这个讨论:当我们使用抽象时,当我们使用接口......? [ ^ ]。
关于界面如何有价值的有趣文章:使用C#接口制作应用程序Resi lient to Changes [ ^ ]。
-SA
See this discussion: When we use abstract and when we use interface...?[^].
Interesting article on the how interfaces a valuable: Using C# Interfaces to Make Applications Resilient to Changes[^].
—SA
因为C#
是一种面向对象的编程语言。接口是一个重要的OOP
实体,例如:面向对象编程语言中的接口 [ ^ ]。
BecauseC#
is an Object Oriented Programming language. Interface is an importantOOP
entity, see, for instance: "Interfaces in Object Oriented Programming Languages"[^].
这篇关于为什么我们需要c#中的接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文