Find the answer to your Linux question:
Results 1 to 2 of 2
In C++ when we create an object of a class, Constructor will be called automatically. Who will take care of calling the constructor and destructor automatically....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    21

    C++: Constructor calling


    In C++ when we create an object of a class, Constructor will be called automatically.
    Who will take care of calling the constructor and destructor automatically.

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    The compiler.
    Debian GNU/Linux -- You know you want it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •