BrainyBoy5515 BrainyBoy5515
  • 22-04-2018
  • Social Studies
contestada

A reason to overload the ________ is to allow you to write classes that have array-like behaviors.

Respuesta :

andriansp andriansp
  • 02-05-2018
I believe the answer is: square brackets [ ] operator

in C++, 
square brackets [ ] operator could be used to outputting an array in a class constructor that  declared using pointers. The constructor should allocate an array and copy values from the pointer argument and should be returned in the element in the array you allocated.
Answer Link

Otras preguntas

a truc relative to a cars position is -60 feet. the air and the truck move in the same direction but the car moves 5 feet per second faster for 8 sec. what oper
Could someone please help me fill in these blanks? At the top there are the words to fill in the gaps! Each word can only be used once! Please help me rn
please help i will mark as brainliest​
What’s this I need help asap
State 4 ways by which student use smart phone negatively.
Una empresa tiene costos fijos de $300 y vende cada artículo en $15. Si se sabe que el punto de equilibrio es q=100. Plantear la función de Costos Totales CT=__
Find the area of the shaded region shown below, which is created using two semicircles. Round to the nearest hundredth. [Section 9.8]
please helpp ! tysm :3
text. 3. Why did Dweck intentionally write a vignette (see paragraph 29) for her experiment that made the grade a C+, not an F; a midterm exam, instead of a fin
I NEED HELP, it’s for baking