方法名相同,參數列表不同
public void hello(){}
public void hello(int a){}
public void hello(String str){}
public void hello(double d){}
方法名相同,參數列表不同
public void hello(){}
public void hello(int a){}
public void hello(String str){}
public void hello(double d){}