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.
浙公网安备 33010602011771号