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 is the value of the expression 7−3 ? 343 −1343 1343 −21
What was the basic political of Sumer
You are setting up tables for 150 people. Each tables seat 12 people. What is the minimum number of tables you will need?
when was Ben Franklin born
which number in 663 that represent the thenth
A survey indicated that 3 out of 5 doctors use brand X aspirin. If 2000 doctors were surveyed, how many used brand X?
Which of the following will sink in a container of mercury with a density of 13.6 g/mL? A. zinc, D = 7.14 g/mL B. ice, D = 0.92 g/mL C. gold, D = 19.3 g/mL
the decimal form of 2.5
what is the quotient written in scientific notation? 3 x 10^20/4x10^5 a. 7.5 x 10^3 b. 0.75 x 10^4 c. 7.5 x 10^14 d. 7.5 x 10^15
the easy way to stop consistent constipation