11 2007 档案
c#接口使用方法
摘要:using System; namespace ClassLibrary2 { interface IEmploy //接口 { void Speak(); //方法 } class Hello:IEmploy //Hello类实现接口 { public void Speak() //实现方法 { Console.WriteLine("Hello:朋友"); } } class Sorry:IEm... 阅读全文
posted @ 2007-11-02 16:44 MainIsUsed 阅读(403) 评论(0) 推荐(0)