题目内容:
class Ex0706Super {
public String methodOne(String name)
{
System.out.println("superclass.methodOne(String)"+name);
return name;
}
public final String methodTwo(String name)
{
System.out.println("Superclass.methodTwo(String)"+name);
return name;
}
public final static String methodThree(String name)
{
System.out.println("superclass.methodthree(String)"+name);
return name;
}
}
public class Ex0706Sub extends Ex0706Super
{
private String methodOne(String name)
{
System.out.println("subclass.methodOne(String)"+name);
return name;
}
public String methodTwo(String name)
{
System.out.println("subclass.methodTwo(String)"+name);
return name;
}
public final String methodThree(String name)
{
System.out.println("subclass.methodThree(String)"+name);
return name;
}
}
以上程序在编译的时候报告有3个错误,请找出来并说明原因。
参考答案: