Copying and Copy Constructors in C++
Offered By: The Cherno via YouTube
Course Description
Overview
Explore the intricacies of copying and copy constructors in C++ through this 21-minute video tutorial. Delve into the necessity of copying objects and data in C++ programming, and learn how to implement copy constructors for custom types to perform deep copies when required. Understand the potential performance implications of copying and discover strategies to avoid unnecessary copying. Gain insights into memory management, string handling, and the concept of deep copying. Follow along with code examples and practical demonstrations to grasp the implementation of copy constructors, disabling copy constructors, and working with references. Master the fundamentals of efficient object copying in C++ to enhance your programming skills and optimize your 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
Related Courses
Computer GraphicsUniversity of California, San Diego via edX Intro to Parallel Programming
Nvidia via Udacity Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera Introduction à la programmation orientée objet (en C++)
École Polytechnique Fédérale de Lausanne via Coursera