Ownership of Objects

Creating objects (dynamically) creates a responsibility of desctructing them. Every object should be owned by a part of a program or another object. When the time comes, the owner is responsible for the destruction of the object.

Here we will hence focus on the ownership of objects and in relation to that the smart pointers in C++ that make memory management easier and support the handling of ownership.

Lecture 10: Object Ownership and Smart Pointers

Posting submission...