何时在实时项目中使用Interface [英] when to use Interface in real time project

查看:93
本文介绍了何时在实时项目中使用Interface的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么时候实时使用界面

解决方案

听起来像学校作业...



接口有助于在类(或其他接口)上强制执行合同。有关详细信息,请查看此处:

https://msdn.microsoft.com/en-us/library/aa260635%28v=vs.60%29.aspx [ ^ ]



好运气!


请阅读:

http:/ /www.tutorialspoint.com/csharp/csharp_interfaces.htm [ ^ ]

when to use interface in real time

解决方案

Sounds like a school assignment...

Interfaces help to enforce a contract on a class (or other interface). Have a look here for more info:
https://msdn.microsoft.com/en-us/library/aa260635%28v=vs.60%29.aspx[^]

Good luck!


Please read this:
http://www.tutorialspoint.com/csharp/csharp_interfaces.htm[^]


这篇关于何时在实时项目中使用Interface的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆