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:

    This made you first to know the Why
    You liked, then after to apply
    That liking; and approach so one the tother,
    Till either grew a portion of the other;
    Each styled by his end,
    The copy of his friend.
    Ben Jonson (1572–1637)