October 2017
Beginner
451 pages
10h 33m
English
Alone we can do so little, together we can do so much.
—Helen Keller
A method that invokes itself directly within its body is recursive, by definition. However, a recursive method does not necessarily have to call itself. It may call another one that in turn calls it back. Thus, invoking the method can provoke multiple calls to it. This type of recursion is called mutual or indirect.
In general, several methods are mutually recursive when they invoke themselves in a cyclical order. For instance, consider a set of methods . If calls , calls , and so on, and finally calls back , then the methods are said to be mutually recursive. ...
Read now
Unlock full access