Overloaded methods of learning Java

Applicable scene:

  A method for functionally similar overload can be achieved

1. The same method name

2. The number of different parameter types

3 regardless of the type of the return value

Guess you like

Origin www.cnblogs.com/yindong2019/p/11783577.html