oop and when to not? mean when to create classes and objects in the program and when to use functions
There's no strict criteria for that.
Lemme explain, wait a bit
Consider the situation where you have to use a loop, what will you use, while or a for, or a recursive function.
haha, assume you don't need to do much work, then?
why while?, why not for?
You'd just choose one go with it right? Most of the time, that is the case with using programming paradigms, until you get more experienced to know which set of problems are more suitable for which situation
Обсуждают сегодня