2.9.4 方法的重载 所谓方法重载,就是在同一个作用域内,方法名相同、但参数不同的方法。 参数不同是指参数个数不同、类型不同。 例4: public static int add(int a,int b) { return a+b; } public static int add