posted 18 years ago
Source: John Meyer's questions
a.Replace line 1 with main = c.getMain();
b.Replace line 1 with a call to coupler�s setMain method with the argument - main.
c.Replace line 2 with return pain; and make no other changes to the program.
d.No changes are required.
e.None of the above.
The answer given b. I feel both b and c are correct.
Thinking about it, may be not. Pain will not necessarily have the required main value all the time.
Anyway, what's the purpose of this code?
[ May 27, 2007: Message edited by: M Krishnan ]