Hi!

In exercises 8, 9 and 10 we are asked to let the methods return the value of the accumulator.

if we look at for example the changeSign method from exercise 9, what is the difference between:

THIS

-(void) changeSign

{

accumulator *= -1;

}

AND THIS?

-(double) changeSign

{

return accumulator *= -1;

}

Both work fine in the program. So what is the reason/logic for letting the method return the accumulator?

Cheers!

p.s.: I did a forum search of course but that was not of any help.