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

How to script and code a basic flash game.
Which text from "Helen Grey" explicitly states a consequence of Helen's behavior? (4 points)
which of the following is NOT a responsibility of the president? A.) commander in chief of the military B.) pardon someone of a federal crime C.) app
A motif of the balcony scene is
How many valence electrons are in magnesium
what is the awnser to (-3)4
Assume you're using a three button mouse. To connect shortcut menus, you would what Click the right button Double click left button Click middle button Double
What is the meaning of the word chivalry?
Match the vocabulary term with its meaning. 1. subsistence 2. agrarian 3. domesticate 4. Mesolithic Age 5. Neolithic Age 6. sedentary to tame plants and animals
Can you tell me What is 3/5 of 65