Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Learn Backend Development Part-Time, Online
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course explains copying in C++, focusing on copy constructors, deep copying custom objects, memory leaks, and the performance cost of copying. It also demonstrates disabling copy constructors and examines references in running code.
Syllabus
Intro
Copying
String
Memory leak
Copy constructor
Disable copy constructor
Deep copy
Running the code
Printing the string
Staking a reference
Summary
Outro
Taught by
The Cherno