试题详情
- 单项选择题 class BitStuff { BitStuff go() { System.out.print("bits "); return this; } } class MoreBits extends BitStuff { MoreBits go() { System.out.print("more "); return this; } public static void main(String [] args) { BitStuff [] bs = {new BitStuff(), new MoreBits()}; for( BitStuff b : bs) b.go(); } } 结果为:()
A、bits bits
B、bits more
C、more more
D、编译失败
- B
关注下方微信公众号,在线模考后查看
热门试题