方法名的重载 overload

重载:方法名相同,参数不同

  例如:

  public class Simple

  {

    public void test()

    {}

    public void test(int a, intb)

    {}

    public  void test(int a, String s)

    {}

  }

posted @ 2018-12-30 19:07  deep-thinking  阅读(124)  评论(0编辑  收藏  举报