Question: Write a program in C++, that creates a class Rock with a default constructor, a copy-constructor, an assignment operator, and a destructor, all of which
Write a program in C++, that creates a class Rock with a default constructor, a copy-constructor, an assignment operator, and a destructor, all of which announce to cout that they’ve been called. In main( ), create a vector
Step by Step Solution
3.33 Rating (150 Votes )
There are 3 Steps involved in it
The output of the program shows that the default constructor assigns values to Rock objects w... View full answer
Get step-by-step solutions from verified subject matter experts
