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...
The Federal Communications Commission defines ________ as anything over 10 Mbps
A) broadband B) municipal Wi-Fi C) mobile Internet access D) DSL
Computer Science & Information Technology
Software that hosts or delivers a Web application is called a(n) ____.
A. Web server B. Internet browser C. Integrated Development Environment (IDE) D. Web site
Computer Science & Information Technology