Foundation III

1. overloaded methods
 
Overload method: the same name of the method, a different number or type of parameters, the type of the return value of the method may be the same or different.
Overloaded methods must be different parameters, you can not override only return a different type of method declaration. The following statement causes an error.
int PrintName(int a){}
float PrintName(int b){}
double PrintName(int c){}
 
 
2.

Guess you like

Origin www.cnblogs.com/dyshk/p/11327706.html