摘要: 如果类实现两个接口,并且这两个接口包含具有相同签名的成员,那么在类中实现该成员将导致两个接口都使用该成员作为它们的实现。例如:interface IControl{ void Paint();}interface ISurface{ void Paint();}class SampleClass : IControl, ISurface{ // Both ISurface.Paint and IControl.Paint call this method. public void Paint() { }}然而,如果两个接口成员执行不同的函数,那么这可能会导致... 阅读全文
posted @ 2013-01-22 18:51 447726527 阅读(327) 评论(0) 推荐(0) 编辑
友荐云推荐