public  interface  Ione  
{  
       void  holl();  
}  
public  interface  Itwo  
{  
       void  holl();  
}  
public  interface  Ithree:Ione,Itwo  
{  
       void  show();  
}  
public interface Ithree:Ione,Itwo
{
    void show();
}
public class MYfile:Ithree
以上是代码的一段,我怎么在类里怎么实现Ione,Itwo??这个类事例化后怎么调用Ione的heoll和Itwo的heoll??

解决方案 »

  1.   

    Interface:
    http://blog.csdn.net/chengking/archive/2005/11/16/530684.aspx
      

  2.   

    这个是关于“隐式接口”的内容。
    具体的语法如下:
    public  interface  Ione  
    {  
    void  holl();  
    }  
    public  interface  Itwo  
    {  
    void  holl();  
    }  
    public  interface  Ithree : Ione, Itwo  
    {  
    void  show();
    }  
    public class MYfile:Ithree
    {
    public void show()//对Ithree 的实现
    {
    } void Itwo.holl()//注意没有访问修饰符
    {
    }
    void Ione.holl()//没有访问修饰符
    {
    }
    }