C++: The Rule Of Three

The Rule Of Three is an absolute must to understand for any C++ programmer. It deserves an own chapter, hence the tutorial. It covers the copy constructor, operator=() and the destructor as a combination to fulfill some basic and fundamental requirements when it comes to building a class (or C++ struct) where members allocate memory in a dynamic way. We are going to setup the minimal basics of a String class to work with.