Question: The class B is responsible for a an array of ints on the heap. Write a copy constructor that does a deep copy of a

The class B is responsible for a an array of ints on the heap. Write a copy constructor that does a deep copy of a B object. Hint: You need to make your own array on the heap and then copy each int over from the other object's array to your array with a loop. Code 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
