Question: Please help with this C++ question: Consider the following (incomplete) class definition: #include #include using namespace std: class ClassA { private: string *ptr;//pointer to a
Consider the following (incomplete) class definition: #include #include using namespace std: class ClassA { private: string *ptr;//pointer to a dynamic array of strings: int size: public: ClassA(int n) { ptr = new string[n]: size = n: } ClassA(const ClassA & other): ~ClassA(): ClassA operator = (const ClassA &rhs): Write an implementation of the assignment operator (outside class specification)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
