Given:<br /> <img src="https://nimg.ppkao.com/2018-08/longzhengxuan/2018080115533690970.jpg?sign=fa9eee0fcd0db3320d414d040841f21b&t=62d14299" /><br /> 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; }