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

in the number 13,407.036 there are two 3's. Explain how the values of the 3's are related.
What is the amplitude of y=1/2 sin2x
What is the amplitude of y=1/2 sin2x
how do you write 4540 million in standard form?
how were north american colonies all similar in the 1700s?
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?
how were north american colonies all similar in the 1700s?
Mini-Project: Cents and the Central Limit Theorem 1. Collect a sample of at least 50 pennies by setting aside all the pennies you receive in change for severa
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?
What is the amplitude of y=1/2 sin2x