试题详情
单项选择题 Given: Which code, inserted at line 15, allows the class Sprite to compile?()

A、Foo { public int bar() { return 1; }

B、new Foo { public int bar() { return 1; }

C、new Foo() { public int bar() { return 1; }

D、new class Foo { public int bar() { return 1; }

  • C
  • 关注下方微信公众号,在线模考后查看

热门试题