Friday 24 February 2012

On creating an array of bird_class objects, which constructor will get called? | C++

The default constructor will get called for the bird_class.

Example:

If a normal constructor Is provided, the compiler will not create a default constructor. A constructor can be simply created with no arguments, as described in the preceding example.