Question: object to its default state ( what the data members would be after the default constructor is called ) Destructor * Cleans up all dynamically

object to its default state (what the data members would be after the default constructor is called) Destructor * Cleans up all dynamically allocated memory (There's a method that does this) Assignment Operator * Assigns all values to match those of the object passed in * Clean up existing memory before the deep copy (There's a method that does this)* Shallow copies - size and capacity * Deep copies - array Copy Constructor * Creates a copy of the object passed in * Shallow copies - size and capacity * Deep copies - array * Remember that C++ does not automatically initialize data members

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!