委托
摘要:
——委托:把方法参数化 1、 关键字:delegate 写在类的外面 2、函数签名:返回的类型,参数 要保持一致 定义委托时根据函数来写 public delegate int first(int a,int b) 定义委托变量,指向方法 ——委托不能被实例化,因为不是类 first f=new j 阅读全文
posted @ 2016-08-12 16:36 yp秋水伊人 阅读(92) 评论(0) 推荐(0) 编辑
2016年8月12日 #
posted @ 2016-08-12 16:36 yp秋水伊人 阅读(92) 评论(0) 推荐(0) 编辑