What is a COPY CONSTRUCTOR and when is it called?
|
|
|
|
|
A copy constructor is a method that accepts an object of the same class and copies it’s data members to the object on the left part of assignement:
Related items
Only registered users can write comments. Please login or register.
|