例如声明一个类,Food,对方法进行重载
class void Food( ){ }
class void Food(int a){ } //有一个形参a
class void Food( int a,int b){ } //有两个形参
class void Food(int a, String b ){ } //有三个形参
class void Food(int ... a){ } //有多个形参
标签:JAVA,形参,变形,void,Food,int,class From: https://www.cnblogs.com/liujy2233/p/16755325.html