“老是忘记这个…”
-
if a subclass has a method with the exact same signature as in the “superclass”, we say the subclass overrides the method.
-
Methods with the same name but different signatures are overloaded.
“老是忘记这个…”
if a subclass has a method with the exact same signature as in the “superclass”, we say the subclass overrides the method.
Methods with the same name but different signatures are overloaded.