Copy Constructor - Bitwise Copy Constructor

Bitwise Copy Constructor

A bitwise copy constructor performs a simple variable-by-variable assignment copy of all the components of an object. The bitwise copy constructor is so named as it merely copies bit-by-bit from the original object to the new object.

It is clear from the above figure that in a bitwise copy constructor the original as well as the new object point to the same variable. Hence, the value of the variable is changed for both the objects even if it is changed by only one object.

Read more about this topic:  Copy Constructor

Famous quotes containing the word copy:

    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 (1881–1973)