2.After creating object, we can add new Branch type objects into branches variable. Doing so we increase object depth by one. Into created objects we can add again new branches etc. This structure depth is 5.
3.Pass this structure into your own created method and calculate the depth of provided structure. Main requirement to complete this task: use recursion.
- Recursive method
- Download (.zip file) or clone this repository.
- Run the Application.