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

PLEASE HELP I GIVE THANKS
what was paul revere failures
20 points People disagree whether the United States should have gone to war against Mexico. Should the United States have declared war? Opinions Please The Unit
Specify, "have" in these proposals is to shock or unstressed? 1) They have not lived here for years. 2) He has a house near the river. 3) Have you finished your
What kind of problems did increased urbanization cause? During time of industrial revolution
Which word has the long e sound? a. client b. inferior c. beautiful d. poetic
when Jefferson took office he did what
What Role Does the Sun Play in Producing Winds And Ocean Currents
what are the 2 major types of cofactors?
amy wants to carpet a room that is 12 feet by 8 feet. how many square yards of carpet will she need to complete the room?