摘要: c#中对接口的实现方式有两种:隐式实现和显式实现,之前一直没仔细看过,今天查了些资料,在这里整理一下。隐式实现的例子 interface IChinese { string Speak(); } public class Speaker:IChinese { public string Speak() { return "Chinese"; } }显示实现的例子interface IChinese { string Speak(); } p... 阅读全文
posted @ 2013-12-13 10:16 暴走小白 阅读(710) 评论(0) 推荐(0) 编辑