public interface inf1 {void show(); } public interface inf2 {void show();公共类A:inf1:inf2 {}

时间:2017-03-06 04:12:42

标签: c#

public interface inf1 { void show(); } 

public interface inf2 { void show(); }

public class A:inf1:inf2 {

}

如何解决这个请帮助我

1 个答案:

答案 0 :(得分:0)

public interface inf1 { void show(); } 

public interface inf2 { void show(); }

public class A:inf1,inf2 {
   public void inf1.show(){}
   public void inf2.show(){}
}

这是接口的显式实现。