base class copy ctor and assignment operator

  • Thread starter Mike - EMAIL IGNORED
  • Start date
M

Mike - EMAIL IGNORED

For my base class, the default copy constructor
and assignment operator do the right thing.
However, a child class requires user-defined
methods because of a c-style string. Must I
therefore provide corresponding user definitions
for the base class?

Thanks for your help.
Mike.
 
A

Alf P. Steinbach

* Mike - EMAIL IGNORED:
For my base class, the default copy constructor
and assignment operator do the right thing.
However, a child class requires user-defined
methods because of a c-style string. Must I
therefore provide corresponding user definitions
for the base class?

No.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top