题目内容
(请给出正确答案)
[单选题]
阅读下面的代码,第10行的语句将调用哪个方法·()1.classPerson{2.publicvoidprintValue(inti,intj){/*…*/}3.publicvoidprintValue(inti){/*...*/}4.}5.publicclassTeacherextendsPerson{6.publicvoidprintValue(){/*...*/}7.publicvoidprintValue(inti){/*...*/}8.publicstaticvoidmain(Stringargs[]){9.Persont=newTeacher();10.t.printValue(10);11.}12.}
A.行2
B.行3
C.行6
D.行7
答案
查看答案