函数重载: 在类里面写多个同名方法来实现不同功能。 public string Show() { return "显示"; } public string Show(string a) { return a+"显示"; } public string Show(string a,string b) { return a+b+"显示"; } public string Show(int b) { return b+"数字"; } 1.函数名必须相同 2.参数个数不同或参数类型不同