NetworkManager::NetworkManager():m_Thread(0), m_Continue(true), m_Init(false){
}
The first one is a name space and the second one is the name of the function. and what are those three parameters?. I think it might be related to the inheritance but those are not the class name. Those are the private variables.
Thanks in advance.
That’s the definition of a constructor – there are no namespaces.
The constructor is for a class called NetworkManager, and it is initialising its members using an initialisation list. What’s going on is conceptually (if not completely accurately):
You then use the constructor to create a fully-initialised object:
Initialisation like this is preferred over assignment in the constructor’s body for several reasons: