7
Although I knew programming for a reasonable time, learning C++ with QT, I came across something I hadn’t seen in other languages. I noticed that some objects (not all) need to be created with an asterisk preceding the name. For example:
QMessageBox *box = new QMessageBox();
That is, the class QMessageBox
To be instantiated, you need that asterisk there to the name of the object. My question is: what is the meaning of that asterisk?
Has something to do with arrays, or pointers?
I thank anyone who gives me some clue so I can at least start searching on Google for the subject. I should search for what?
Related: When to choose whether to use a pointer when creating an object?
– Math