java-05: Method

Precautions:

  The method defined in no particular order of

  The method defined in nesting relationship can not produce

 

Overloaded methods: a plurality of the same name of the method, but the method is not the same number of parameters

Overloaded methods related to the following factors:

  1: the number of different parameters

  2: different types of parameters

  3: Different parameters of multi-type sequence

Guess you like

Origin www.cnblogs.com/BatmanY/p/11519780.html