1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

array of Fred objects?

Discussion in 'C' started by sareen, Mar 25, 2008.

  1. sareen

    sareen New Member

    Joined:
    Feb 26, 2008
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Which constructor gets called when I create an array of Fred objects?
     
  2. lead.smart34

    lead.smart34 New Member

    Joined:
    Feb 14, 2008
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    0
    default constructor
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    The biggest question is what is Fred?
     
  4. lead.smart34

    lead.smart34 New Member

    Joined:
    Feb 14, 2008
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    0
    objects are related to classes, so whenever an array of anything is created it always the default constructor is called first
     

Share This Page