To prevent class objects from being copied or assigned, you can:

a. Declare as private the class’s copy constructor and overloaded assignment operator.
b. Declare the class’s copy constructor and overloaded assignment operator with with = delete after the parameter list.
c. Simply do not declare a copy constructor or assignment operator in the class.
d. (a) or (b).

d. (a) or (b).

Computer Science & Information Technology

You might also like to view...

Pages/sec, Available Bytes, Committed Bytes, Pool Nonpaged, and Page Faults/sec are all counters for the ____________object

a. Memory b. Disk c. CPU d. Network

Computer Science & Information Technology

Which of the following would be used to implement digital phone service inside of a large company?

A. LDAP B. Fiber C. PSTN D. VoIP

Computer Science & Information Technology