Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   array of Fred objects? (http://www.go4expert.com/forums/array-fred-objects-t9608/)

sareen 25Mar2008 16:03

array of Fred objects?
 
Which constructor gets called when I create an array of Fred objects?

lead.smart34 25Mar2008 16:15

Re: array of Fred objects?
 
default constructor

shabbir 25Mar2008 16:19

Re: array of Fred objects?
 
Quote:

Originally Posted by lead.smart34
default constructor

The biggest question is what is Fred?

lead.smart34 25Mar2008 16:23

Re: array of Fred objects?
 
Quote:

Originally Posted by shabbir
The biggest question is what is Fred?

objects are related to classes, so whenever an array of anything is created it always the default constructor is called first


All times are GMT +5.5. The time now is 14:05.