I was just looking at this site with online books and i read this.
Code:
This implementation has the following disadvantage. T
he C++ compiler will generate code to call the default constructor of a base class from each constructor in the derived class,
unless explicitly instructed otherwise.
This can be compared to the situation which arises in composed objects (see section 6.4).
Im not sure if it answers your questions though. This is from "C++ Annotations." (thats the book).
And then i found this from another book "Complete C++ language tutorial "
Code:
What is inherited from the base class?
In principle every member of base class is inherited by derived one but:
Constructor and destructor
operator=() member
friends
Although constructor and destructor of the base class are not inherited,
the default constructor (i.e. constructor with no parameters)
and the destructor of the base class are always called when a new object of a derived class is created or destroyed.
So yes i think your books is right.
Hope that answers your question!!!
NOTE: if your wondering what site im getting these books from here: http://cboard.cprogramming.com/newre...threadid=31385