C++ Rule of Three
Intro to Rule of Three in C++
Destructor
- If you can construct a class (with a constructor), you should also beable to deconstruct
C++ treats variables of user-defined types with value semantics. This means that objects are implicitly copied in various contexts, and we should understand what “copying an object” actually means.