Given: Given: What should statement1, statement2, and statement3, be respectively, in
order to produce the result?
A.
Square square = new Square (); square.foo (); square.foo(bar);
B.
Square square = new Square(); square.foo(“bar”); square.foo();
C.
Square square = new Square (); square.foo (); square.foo(“bar”);
D.
Square square = new Square (“bar”); square.foo (“bar”); square.foo (“bar”);
E.
Square square = new Square (“bar”); square.foo (“bar”); square.foo();
F.
Square square = new Square (); square.foo (); square.foo ();
B