Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Copying and Copy Constructors in C++

The Cherno via YouTube

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

Reviews

Start your review of Copying and Copy Constructors in C++

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.