mardi 30 avril 2019

C++ : What is done in the following example? Is it multiple Inheritance? [duplicate]

This question already has an answer here:

MainWindow::MainWindow(const char* f, QWidget* p) : QMainWindow(p), m_database() {
    // ................
}

Why is m_database used before the curly brackets? It can't be multiple Inheritance since m_database is not a class?

It is declared in the .h file like this.

private:
    BRLCAD::ConstDatabase m_database;

Aucun commentaire:

Enregistrer un commentaire