- Category:
- Java Develop
- Tags:
-
- File Size:
- 134kb
- Update:
- 2018-08-27
- Downloads:
- 0 Times
- Uploaded by:
- 周驰驰
Description: 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
To Search:
File list (Check if you may need any files):
鏂扮増闈㈣瘯棰樻暣鐞?