2008年10月15日
摘要: 重载就是方法名相同,参数(个数或类型)不同(称之为签名不同) 比如: string test() { Console.WriteLine("Hello world"); //也可以这样用:test("Hello world"); } string test(string msg) { Console.WriteLine(msg); } 这样就达到了,用同样的方法名,通过... 阅读全文
posted @ 2008-10-15 17:43 阿良 阅读(688) 评论(0) 推荐(0) 编辑