Rule of Five
When designing data types in C++, we often need to…