| * | | i=12|
}
a) 145 b) 169 c) 156
d) 程序无法编译
75)在Java中,下面这段代码运行后的结果是()。(选择一项)
class FatherClass{
final protected void faMethod() { final方法不能被子类重写 System.out.println(“这是父类中的方法”) ; } }
class SonClass extends FatherClass{ public void faMethod() {
System.out.println(“这是子类中的方法”) ; }
public static void main(String[]args) { FatherClass obj=new SonClass() ; obj.faMethod() ; } }
a) 这是父类中的方法 b) 这是子类中的方法 c) 这是父类中的方法 这是子类中的方法 d) 编译错误
16