Given:<br /> <img src="https://nimg.ppkao.com/2018-08/wenxueying/2018080113365623120.png?sign=12ead31e9821b40628f934d0d2bbedf9&t=62d310ce" /><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; }