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.
You might also like to view...
Although it is an exciting medium, 3D animation is still a curiosity on the Web. Why is this? List several reasons.
What will be an ideal response?
HTML is used
(a) to render Web pages. (b) to incorporate programs into a document. (c) to specify where a document is located on disk. (d) to specify the structure of a document.
Shapes is in the ________ group on the Insert tab
A) Symbols B) Media C) Illustrations D) Images
An Excel window area that displays the value contained in the active cell
A) Name Box B) Workbook C) Formula bar