Is it object oriented programming in C++?
-
I wrote a program in QT, unfortunately my programming knowledge is poor and I have to do a project, you have to help me. I am forced to create a project in object oriented C ++. I've watched a lot of tutorials on YouTube and programming looks like this there. All the code for pressing a button is written underneath it. Could this be called object oriented programming? All the variables are in the window's .h file along with the variables. If this is not object-oriented programming, please let me know how to divide these instructions into classes and methods. Thank you in advance for your help. https://pastebin.com/7qNSc5cZ
-
Hi,
Yes it can be called that. Note that you are doing one wrong thing: do not keep a member variable of QSqlDatabase type. It's explained why in the class documentation.