What is this Rule of Three?
It's a common guideline for object design in C++ worth knowing to help you understand the trickiness of implicitly declared methods the compiler adds to your code that you may not be aware of. This can sometimes cause strange behavior in your objects that can be difficult to debug and cause less than desirable effects. What am I talking about? Well first let's have an introductory example.
Say you have this simple class.
class SimpleClass
{
int num;
};
Now what you may not realize is that all class objects need certain methods when used and that if they aren't...