java English:overloading and overriding

Overloading a method is what you have already learned: providing more than one method with the same name but with different signatures to distinguish them.
    *

      Overriding a method means replacing the superclass's implementation of a method with one of your own. The signatures must be identical  but the return type can vary in a particular way, as discussed below.

 

 

 

posted on 2008-10-15 10:17  胖兔子  阅读(134)  评论(0)    收藏  举报

导航