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

Are dentures better than a mouth full of crowns?
What differentiates baseline activities from health-enhancing activities?
What is the fluid that fills the nucleus called?
give an approximate value of the square root of 1000 to the tenths place.
AP US History question: To what extent did the Federalist administrations of George Washington and John Adams promote national unity and advance the authority o
-2x-y=-9 5x-2y=18 substitution
Which point of view allows the narrator to see into the heart and mind of only one character at a time? A. first-person B. third-person limited C. third-person
How to balance chemical equations?
Which of the following is a clause? Clapping and laughing excitedly Whereas I love ice cream The captain and his rowdy crew standing To get up and go
Jill sold half of her comic books and then bought sixteen more. She now has 36. With how many did she begin with?