array of Fred objects?

sareen's Avatar, Join Date: Feb 2008
Go4Expert Member
Which constructor gets called when I create an array of Fred objects?
lead.smart34's Avatar, Join Date: Feb 2008
Contributor
default constructor
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by lead.smart34
default constructor
The biggest question is what is Fred?
lead.smart34's Avatar, Join Date: Feb 2008
Contributor
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