Learn C++ | Rule of Three in C++
The Rule of Three in C++ asserts that you often need to specify all three special member functions if you need to define a class that has any of the following special member functions: copy constructor, copy assignment operator, or copy destructor.