Chapter 3
Classes
Section 8
Copy Constructors and Assignment Operators
This constructor initializes the data members of one object to another object. The object used to copy the member's value is passed as an argument to the copy constructor, typically of type reference to the class itself and possibly const qualified. Let us look at the syntax that refers to a class with a user-defined copy constructor, which copies the data member of the other object into the current one.