Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6021711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:45:12+00:00 2026-05-23T03:45:12+00:00

NetworkManager::NetworkManager():m_Thread(0), m_Continue(true), m_Init(false){ } The first one is a name space and the second

  • 0
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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:45:13+00:00Added an answer on May 23, 2026 at 3:45 am

    That’s the definition of a constructor – there are no namespaces.

    NetworkManager :: NetworkManager() : m_Thread(0), m_Continue(true), m_Init(false){
    }
    

    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):

     NetworkManager :: NetworkManager() {
          create "empty" NetWorkManager object
          initialise its m_Thread with zero
          set its m_Continue to be true
          set its m_Init to be false
     }
    

    You then use the constructor to create a fully-initialised object:

    NetworkManager manager;
    

    Initialisation like this is preferred over assignment in the constructor’s body for several reasons:

    • many types do not support assignment
    • it is typically more efficient
    • it removes the possibility of uninitialised objects in the remainder of the constructor code
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My first class: <?php require_once( 'error/DisconnectedHandler.php' ); require_once( 'error/NoSuchRequestHandler.php' ); class NetworkManager { public
I need to check every five minutes if 4 servers are online from one
I am trying to get only the service name from the data i am
I've dug into NetworkManager (and from there, into dbus, etc.) and identified the wireless
I have used this code to sent the user name and a password to
I'm developing an Asynchronous Game Server using .Net Socket Asynchronous Model( BeginAccept/EndAccept...etc.) The problem
Here is the code that I have so far to define the icon: icon_bg
I have a plan to write a small Network manager for my company using
I am working on an application which uploads the content of the file to
I'm trying to write an application using QNetworkManager. I have simplified the code down

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.