Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 216 Bytes

13.24.md

File metadata and controls

3 lines (2 loc) · 216 Bytes

If we didn't define a destructor, the memory stored the string will be leak.

If we didn't define a copy constructor, then both the new object and the old object being copyed will point to the same underline string.