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

2*10^30/1.4*10^27 and round it to the nearest tenth
Aqueous solutions of this ion give a reddish precipitate when excess hydroxide ion is added. (A) Cu^{2+} (B) CO₃^{2−} (C) Fe^{3+} (D) Al^{3+} (E) Pb^{2+}
2+3=8, 3+7=27, 4+5=32, 5+8=60, 6+7=72, 7+8=???????? SOLVE IT IF YOU CAN
Shandra's cat is 23.4 cm tall and 38 cm long. Express these lenghts in metres and in millimetres. Someone help me , I really need it for tomorrow and please exp
What is the complete predicate of the following sentence?sharon and Jason went for a walk then a bike ride
what causes the earths crust to move ?
Solve equation using square root property X2-8X+16=1
How would I find the slope intercept form of x+y+3=0?
I need to factor 5a^2 + 7a + 6b^2 - 4b  but I can't figure it out.......could it possibly be prime?
expand and simplify this can you help  (2x²−3x+4) ( x²+5x−7)