老问题
运行后提示13 17 21行missing return statement,,,,,,为什么啊?怎么改??
public class OverloadTest{
public static void main(String args[]){
OverMethod methObj = new OverMethod();
methObj.printMeth();
methObj.printMeth(2,5);
methObj.printMeth("Very good!");
}
}
class OverMethod{
Void printMeth()
{
System.out.println("There is none parameter.");
}
Void printMeth(int s,int t){
System.out.println("There are two parameter.");
}
Void printMeth(String s){
System.out.println("There is one parameter.");
}
}