I just started learning OOP, and I'm a little confused by the benefits of any functions or OOP. I understand that OOP is much more versatile in organizing your code, but, for example, I have 50 lines of code that appear on 7/10 pages of my site. Is it better to create a file and put the function in the file and then use include or do the same with the class? Also, are mass classes better in one file and include it? If anyone has some understanding that can help eliminate my confusion, I would really appreciate it.
source
share