Should I learn recursion before OOP?
I am reading this C ++ book "Solving Problems With C ++" in my spare time. I went through 4 chapters and now I am in a split. I can either move on to Chapter 5, which is file operations, and an introduction to OOP, or I can move to Chapter 12, which is recursion. So far I've just gotten to the basics of the compiler, all of this if, still, and sings syntactic jazz, and both are invoked by reference and call value functions. The book does not mention whether it is better to learn recursion before it ends or not, but she says that some teachers may prefer to teach her that way and it’s okay to go to chapter 12 and come back. I, being new to both paradigms, just want to know if it is good for me to learn one the other ... and yes, I plan on learning anyway, don't be such a wise guy.
Recursion is a mathematically fundamental concept, but I wouldn't consider it a core topic in C ++ to make it necessary for skipping files, OOP, and other very practical concepts. The instructor may wish to return the chapters / subjects according to their own learning style, but without specifying the instructor, I would recommend continuing to work on the chapters in their natural order (this should be the order the authors approved in the end! - ) and will come to recursion later, after you have OOP, files and under your belt.
source to share
OOP and recursion are two completely different things. OOP is much more of a concept compared to recursion. I suggest you go through the order in the book. If he's not going to talk about recursion before Chapter 12, then he won't use it either. Therefore, you will not miss anything.
source to share
Recursion has nothing to do with OOP. When learning recursion, people use the Fibonacci sequence ; when teaching OOP people usually say that "a car has four wheels."
I would advise you to switch to which is more interesting for you . In this case, it appears to be recursion. Recursion as a mothod solving problem, if not more important than OOP, is just as important as OOP.
source to share
In my personal opinion, I would say go with recursion first, but spend more time oop.
Also, if you get what: you help you learn better other things - then yes and no.
Yes, if you learn to program, then the next thing you learn (even unrelated) will be easier to learn just because you get more and more experience with programming in general.
No, that the order in which you learn about it in relation to each other does not matter.
source to share