Logical Copy Constructor
A logical copy constructor makes a true copy of the structure as well as its dynamic structures. Logical copy constructors come into the picture mainly when there are pointers or complex objects within the object being copied.
It can be seen from the above figure that in a logical copy constructor, a new dynamic - member variable is created for the pointer along with copying the values.
Read more about this topic: Copy Constructor
Famous quotes containing the words logical and/or copy:
“There is no logical reason why the camel of great art should pass through the needle of mob intelligence.”
—Rebecca West (18921983)
“Success is dangerous. One begins to copy oneself, and to copy oneself is more dangerous than to copy others. It leads to sterility.”
—Pablo Picasso (18811973)