Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: C++
Expertise: All
Feb 17, 1998

Default Constructor is a Must When Instantiating Arrays

When an array of object is instantiated, the default constructor (and only the default constructor) of each member is invoked automatically. If you define no constructors at all, the compiler will generate a default constructor for you. But if you define one or more constructors, none of which is a default constructor (i.e., constructor taking no arguments)
Danny Kalev
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date