How to approach a project and the C++ Rule of Three

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=0pdvKWmona8



Category:
Guide
Duration: 1:43:27
316 views
6


The first bit I talk about how to pick apart a homework assignment, making sure that your code *always* compiles!

Then we got into the Rule of Three. Basically, if you allocate anything in a constructor, then you probably need a destructor to deallocate it, and a copy constructor and operator= to make sure you're doing a deep copy and not a shallow copy which will ruin your world.