【method】

Note method:
1. The method does not call is not executed.
2. Method The method is flat and relationships, not nested definitions.
3. The method defined between a time parameter, separated by commas.
The method is called when no further transfer of data types.
5. If the method has a clear return values, there must be a return value back.
Method call 6.Void type requires only the method name and parameter list.
 
Method overloading:
In the same class, the same method name, a list of different parameters, regardless of the type of the return value.
Different parameter list: A: number of different parameters. B: Different types of parameters.

Guess you like

Origin www.cnblogs.com/zuixinxian/p/11276398.html