41 lines
560 B
Java
41 lines
560 B
Java
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;
|
|
}*/
|
|
}
|