Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
This is the copy constructor of the myclass class, it takes as a parameter a constant reference to an instance of the myclass class. Called to create a new instance of a class based on an existing instance of the same class (copy the class).
See details and examples here: https://en.cppreference.com/w/cpp/language/copy_co...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question