接口 interface
摘要:
/*接口 interface就是一系列公共标准接口只能包含:方法、属性、索引器、事件。接口中不能定义字段,不能有构造方法。方法不能实现。不能包含运算符重载接口中的成员不能有修饰符,因为接口总是公共的。*/namespace Frank{ public class Test { public static void Main(string[] args) { } } public interface ITest2 { int Age{get;set;} void Get(); int Set(int a); } public in... 阅读全文
posted @ 2013-11-21 15:58 wp456 阅读(175) 评论(0) 推荐(0)
浙公网安备 33010602011771号