To prevent class objects from being copied:
A) Make the overloaded assignment operator private.
B) Make the copy constructor private.
C) Both (a) and (b) .
D) None of the above.
Correct Answer:
Verified
Q24: A copy constructor:
A) Is a constructor with
Q25: Which of the following is false?
A) To
Q26: Which statement is false?
A) Based on whether
Q27: An explicit constructor:
A) Cannot be called outside
Q28: The prototypes of overloaded cast operator functions
Q29: To prevent class objects from being copied
Q31: Conversion constructors:
A) Can have multiple arguments.
B) Can
Q32: A copy constructor must receive its argument
Q33: Which of the following is not a
Q34: Assume that the function call operator() is
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents