Direct and indirect Recursion in OOP:-
1. The examples that show recursive functions or functions those directly call themselves. This is known as direct recursion.
2. There is also the possibility of creating indirect recursion in a program. This occurs when function A calls function B, which in turn calls function A.
3. There can even be several functions involved in the recursion.
4. For example, function A could call function B, which could call function C, which calls function A.


LinkBack URL
About LinkBacks
Reply With Quote

LinkBacks Enabled by vBSEO
Bookmarks