Neither the assignment operator overloading nor the copy constructor is inherited. If you do not create one, does this mean that the derived class will have no assignment operator or copy constructor?

What will be an ideal response?


In classes for which no operator assignment or copy constructor is provided, the compiler will generate a “member-wise” copy operator assignment and copy constructor. If that works, you don’t need anything else. If you have pointers and memory allocated space on the free store, the pointers will be copied. This is unlikely to be what is needed.

Computer Science & Information Technology

You might also like to view...

Which of the following is not part of the Software Life Cycle?

a. Analysis b. Design c. Data Entry d. Implementation e. Testing

Computer Science & Information Technology

All c-strings must be terminated by ________

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

____________________ are numeric data in a cell that can be used in calculations.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

ExecuteDataMacro is an action that can be chosen in the Macro Designer.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology