问题 单项选择题

关于多线程,下列哪个说法不正确

A.100

B.0

C. A

D. 程序有错误

答案

参考答案:A

解析:在对象b调用prin()方法时,使用了类B内定义的print()版本,即在类B内的print()版本覆盖了在类A中的print()方法。

填空题
单项选择题