Hello,
Being fairly new to C++ I am having a little trouble with the idea of a this pointer, can anyone enlighten me?
If you pass a dereferenced this pointer into a copy constructor what exactly is happening there?
//I have this:
Virtual Mammal* Clone() { return new Cat(*this);}
//Is the this pointer pointing to the beginning of the array which holds the private data of the original object and some magic then goes on which involves copying values over into the new Cat?
A general explanation would be really helpful.
Thanks