Object Oriented Programming (OOPs)
© examsiri.com
Question : 51 of 72
Marks:
+1,
-0
Given:
Which code, inserted at line 6, allows the class Sprite to compile?
1. interface Foo { int bar(); }
2. public class Sprite {
3.   public int fubar( Foo foo ) { return foo.bar(); }
4.   public void testFoo() {
5.    fubar(
6.   /*insert code here*/
7.    );
8.  }
9. }Which code, inserted at line 6, allows the class Sprite to compile?
Go to Question: