单选题

Given: Which code, inserted at line 15, allows the class Sprite to compile?()

AFoo { public int bar() { return 1; }

Bnew Foo { public int bar() { return 1; }

Cnew Foo() { public int bar() { return 1; }

Dnew class Foo { public int bar() { return 1; }

正确答案

来源:www.examk.com

答案解析