Originally posted by Ivan Rebrov:
Both methods are legal overloads of method in the task.
But the first method produces recurcive call of itself. So it leads to stack overflow error.
That's why I think, it is better to take the second method
[ August 11, 2006: Message edited by: Ivan Rebrov ]
[ August 11, 2006: Message edited by: Ivan Rebrov ]
Dear Ivan Rebrov,
Well I must clear you here, as you said that
first method produces recurcive call of itself. So it leads to stack overflow error.
Why do you think so, that first method produces recursive call to itself.
I am not looking any reason for that.
But yes both of them cann't be in same Class, because that might create a confusion for compiler to decide to call which method.
I hope I make it clear.