day04-方法_重载
This commit is contained in:
40
day04/src/com/inmind/overload02/Test05.java
Normal file
40
day04/src/com/inmind/overload02/Test05.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package com.inmind.overload02;
|
||||
/*
|
||||
下列哪些方法和指定的方法重载了。
|
||||
a.int show(int x,float y,char z)
|
||||
|
||||
b.void show(float b,int a,char c)
|
||||
|
||||
c.void show(int c,float a,char b)
|
||||
|
||||
d.void show(int a,int b,int c)
|
||||
|
||||
e.double show()
|
||||
|
||||
*/
|
||||
public class Test05 {
|
||||
void show(int a,float b,char c)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
double show(){
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
void show(int a,int b,int c){
|
||||
|
||||
}
|
||||
|
||||
/*void show(int c,float a,char b){
|
||||
|
||||
}*/
|
||||
|
||||
void show(float b,int a,char c){
|
||||
|
||||
}
|
||||
|
||||
/*int show(int x,float y,char z){
|
||||
return 1;
|
||||
}*/
|
||||
}
|
||||
Reference in New Issue
Block a user