• 2021-04-14 问题

    中国大学MOOC:编译并运行下面的程序,运行结果为( )。publicclassMain{publicstaticvoidmain(String[]args){AAobj=newBB();System.out.println(obj.f(4,6));}}classAA{doublef(doublex,doubley){returnx*y;}}classBBextendsAA{doublef(doublex,doubley){returnx+y;}}

    中国大学MOOC:编译并运行下面的程序,运行结果为( )。publicclassMain{publicstaticvoidmain(String[]args){AAobj=newBB();System.out.println(obj.f(4,6));}}classAA{doublef(doublex,doubley){returnx*y;}}classBBextendsAA{doublef(doublex,doubley){returnx+y;}}

  • 1