下面哪个方法是publicvoidA(){...}的重载方法()
A: void A(){…}
B: public int A(){…}
C: public void A(){…}
D: pubilic int A(int n){…}
A: void A(){…}
B: public int A(){…}
C: public void A(){…}
D: pubilic int A(int n){…}
举一反三
- 给定下面方法声明,与该方法重载的方法包括 public void close(int apple){} A: public int close(int a){} B: public void close(int a, int b){} C: public void close(int door){ System.exit(0); } D: public void close(float door){} E: public void close(double b, Boolean b){}
- 下面哪个函数是public void aMethod(){...}的重载函数?( ) A: void aMethod( ){...} B: public int aMethod(){...} C: public void aMethod ( ){...} D: public int aMethod ( int m){...}
- 给定下面方法声明,与该方法重载的方法包括[br][/br]public void close(int apple){} A: public int close(int a){} B: public void close(int a, int b){} C: public void close(int door){<br> System.exit(0);<br>} D: public void close(float door){} E: public void close(double b, Boolean b){}
- 下面( )方法是public void example(){}的重载方法。 A: private String example(){} B: public int example(String str){} C: public void example2(){} D: public int example(int m,float f){}
- 以下是"public static void test(int x, int y)"的方法重载( ) A: public static void Test(int x) B: public static int test(int x, int y) C: public static void test(int y, int x) D: public static void test(int x, int y)