Introduction - If you have any usage issues, please Google them yourself
features and differences in rewriting and overloading?
A) overloading
Simply put, that is, the function or method has the same name, but the parameter list is not the same, so that functions or methods with different parameters of the same name are called overloaded functions or methods among themselves.
B) Rewrite
Rewriting refers to the way in which the subclass of Java and the parent class have two names, parameter lists, and the same type of return value. Since they have the same method signature, the new method in the subclass overrides the original method in the parent class.
Rewriting is the polymorphism between the parent class and subclass, redefining the functions of the parent class.
C) difference