Possible Duplicate:
What is The Rule of Three?
I have read in my book about rules of three when you design class in C++:
If you define any one of three in class, then you should define all of three.
1) destructor
2) copy constructor
3) Copy assignment constructor
I understand how to implement those in C++. But I cannot explain myself why we should do ALL of three when we already has one. what the connection between this, please tell me.
Thanks :)