在一个类中定义同方法名,但不同入口参数的这种形式叫overload。
override是指派生类中与基类中的方法重复(包括入口参数),这样派生类中的方法就将基类中的方法替换掉了。

解决方案 »

  1.   

    The signature of a method is its name, argument type and argument order.
    - an overload is legal provided the two methods have different signatures.
    - an override must have the same signature and return type, throw no new
    checked exceptions and be at least as accessible as the method it is
    overriding.