I am a new to in programming, especially to C++.At first I learned how I make functions (it was amazing).But now that I've learned about classes (and objects) I am so confused... when I should use them? What makes them more efficient than functions? Most example problems I try to solve using functions, not classes.Is that good or bad?Is there a good an example problem that shouldn't be solved using functions and should be solved using classes? Something that will make clear the benefits of using classes?
Why solve a problem with a class and not a function?
c++;class;functions