Lifetime of member variables in C++ object

Discussion in 'C++' started by nagashre@gmail.com, Nov 1, 2007.

  1. Guest

    Class A
    {

    }
     
    , Nov 1, 2007
    #1
    1. Advertising

  2. Puppet_Sock Guest

    On Nov 1, 3:57 pm, wrote:
    > Class A
    > {
    >
    >
    >
    > }


    Um? What was your question?

    Member variables start their life at the time of
    construction of the object, and end it at destruction.
    The usual caveats about construction order, etc.
    Socks
     
    Puppet_Sock, Nov 1, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anargyros L. Papadopoulos

    lifetime of local variables

    Anargyros L. Papadopoulos, Jan 21, 2005, in forum: C++
    Replies:
    1
    Views:
    311
    Victor Bazarov
    Jan 21, 2005
  2. Vagif Abilov
    Replies:
    3
    Views:
    18,257
    Laurent Bugnion
    May 24, 2006
  3. Replies:
    3
    Views:
    346
    Tadeusz Kopec
    Nov 1, 2007
  4. Replies:
    9
    Views:
    952
  5. mario semo
    Replies:
    3
    Views:
    639
    James Kanze
    May 15, 2008
Loading...

Share This Page