English |
Different locations |
Different roles |
|
Overload |
overload |
The same class |
In a class which offers a variety of ways to achieve the kind of behavior and improve readability |
Rewrite |
override |
Between parent and child classes |
The method can not meet the requirements of the parent class subclasses, subclasses override to meet the requirements by a method |
|
Modifiers |
return value |
Method name |
parameter |
Throw an exception |
Overload |
Unrelated |
Unrelated |
the same |
different |
Unrelated |
Rewrite |
greater or equal to |
Less than or equal |
the same |
the same |
Less than or equal |