What is the difference between method rewriting and method overloading in Java?
Method overloading: In the same class, the method names are the same, but the number of parameters, parameter types or return value types are different!
Method rewriting: refers to the relationship between subclasses and parent classes. A subclass overrides the method of the parent class, but the method name, parameter type and parameter number must be the same!