yesjordan8985 yesjordan8985
  • 03-09-2022
  • Computers and Technology
contestada

suppose a function returns an object. what value does the function return if the class did not provide a copy constructor?

Respuesta :

Baraka1 Baraka1
  • 07-09-2022

The automated copy constructor simply copies all of the member variables from the local variable to the return location if a copy constructor is not given.

The automated copy constructor is a great tool if you want to quickly copy all of the member variables from one object to another. However, if you want to initialize the variables in the new object differently, you'll need to create a custom copy constructor.

https://brainly.com/question/20734432

#SPJ4

Answer Link

Otras preguntas

What was the relationship between religion and government in Ancient Rome?
Through what action did hitler violate the versailles treaty in 1936?
Un cientifico estudia las cosas para ver cómo funcionan. Question 4 options: True False (Don't need translated just t or f please)
What is the arc length of the subtending arc for an angle of 72 degrees on a circle of radius 4?
find the inverse of h(x)=(2x-4)/3
help mee please!!!!!
Who changed the focus of the national socialist german workers' party in the 1920s, using propaganda to advocate expansionism and antisemitism?
For the inverse variation equation xy = k, what is the constant of variation, k, when x = 7 and y = 3? 3/7 7/3 10 21
Refusing credit is unique bad-news message because The Fair Credit Reporting and Equal Credit Opportunity Acts require businesses to: a. send a notice that the
Why was the department of homeland security created after the attacks on 9/11?