摘要:
C# interface定义及使用的问题:接口定义以大写字母I开头。以下未明白:方法只定义其名称,在C#中,方法默认是公有方法;用public修饰方法是不允许的,否则会出现编译错误;接口可以从别的接口继承,如果是继承多个接口,则父接口列表用逗号间隔。Dage.Interface.csusing System;namespace Dage.Interface { //打印机接口 public interface IPrint { string returnPrintName(); }} Dage.Print.csusing System;using Da... 阅读全文