C++
Programming and Technical
When are copy constructors called?
Read Solution (Total 1)
-
- A copy constructor is called in these situations:
• when a function returns an object of that class by value
• when the object of a class is passed by value as an argument to a function
• when you construct an object based on another object of the same class
• when the compiler generates a temporary object - 6 years agoHelpfull: Yes(0) No(0)
C++ Other Question