6

package test1;

class teacher1{
public teacher1(){
System.out.println("builder");
}
public void function(double a){
System.out.println("double");
}
public void function(float a){
System.out.println("float");
}/*
public void function(int a){
System.out.println("int");
}*/

}

public class teacher{
public static void main(String[] args){
teacher1 t1=new teacher1();
double test=3.5;
int test1=3;
t1.function(3);
}
}

posted on 2017-03-11 21:36  tuzhuo  阅读(81)  评论(0编辑  收藏  举报