The copy constructor has the following characteristics:
- It has the same name as the class it belongs to.
- It takes one argument of the same class type (a reference to an object of the same class) as its parameter.
- It is usually declared as a public member function.
- It is automatically called in certain situations, such as when you pass an object by value, return an object by value from a function, or when initializing one object with another of the same class.
Shathana. S.R. Answered question September 7, 2023
