Overloading and overriding methods in Java
1) The parameter of the method: the overloaded method and the source method will change in the order of the parameter list, and the overridden method will not change the order of the parameter's data type and the parameter list.
2) Whether the original method is overridden: The overloaded method does not overwrite the original method, and the overridden method overrides the method in the parent class, and invokes only the overridden method.
3) on the object that invokes the method: When the overloaded method is called, the calling object is not the same, the calling method is different, the result is different, and the overridden method is invoked, regardless of whether the object being called is the parent or subclass object, the same method is produced, and the result is the same
The difference between overloading and overriding methods in Java