The method of method overloading and cover

The method of method overloading and cover

The method of method overloading and cover are two completely different concepts. Overload means, if a plurality of the same name in the same class and the different parameters of the method, the use of different number and type of parameters are the same name can be called
a different version of the method; method of covering means, in the parent class and subclass by the same method name, return type, and, reconstructs a member of the parent class.

Published 16 original articles · won praise 11 · views 650

Guess you like

Origin blog.csdn.net/qq_44981039/article/details/102885290