Chapter 14: Problem 18
The class stuff has both a copy constructor and an overloaded = operator. Assume that blob and clump are both instances of the stuff class. For each statement below, indicate whether the copy constructor or the overloaded = operator will be called. Stuff blob = clump; clump = blob; blob.operator=(clump); showValues(blob); // blob is passed by value.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.