12
char* lastStr=new char[strlen(this->data)+strlen(st2.data)]; delete[] lastStr; //delete dynamically allocated char array
1234
char* lastStr=new char[strlen(this->data)+strlen(st2.data)]; strcpy(lastStr, this->data); strcat(lastStr, st2.data); delete[] lastStr;