Andre Poenitz wrote:

> On Wed, Jun 11, 2003 at 07:29:17PM +0000, Angus Leeming wrote:
>> class Derived : public Base {
>>         ???
>> };
>> 
>> The question is, do I need to define explicit copy c-tor and operator=
>> for Derived to ensure that Base's copy c-tor, operator= is used?
> 
> No.
> 
> The generated once will call the cctor and operator= of the base and those
> of the members. If they do what they are supposed to, there is no need to
> put etra code in the derived class.

Thanks for the confirmation. I went ahead and tested it and all worked as 
expected.

-- 
Angus

Reply via email to