How do you use classes and recursion together ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you use classes and recursion together ?

15th Oct 2016, 4:59 PM
Arshi Singh
Arshi Singh - avatar
2 Answers
+ 2
you question is kinda not clear. you can create multiple classes and in each classes you can have as many recursions as you wish. coders create different classes because that makes it easier to read for other people and to edit too
17th Oct 2016, 6:32 AM
imaqtpie
imaqtpie - avatar
0
I think what is meant is a class which has itself as object.
29th Oct 2016, 7:24 AM
b4u3r242