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

What was true about craft unions like those led by samuel gompers?
Which mineral is needed for healthy red blood cells? iron calcium potassium sodium
It takes 40 min for a bus to travel the 36 miles from Framingham to Worcester. A car traveling from Worcester to Framingham moves 1.5 times as fast as the bus.
To solve problems using boyle's law, which mathematical equation should be used?
Question - What is his (Frederick Douglass) hope, and why does he have the hope? Story - Narrative of the Life of Frederick Douglass Required - Textual Evidence
Which product was introduced during the Second Industrial Revolution: A. Spinning Jenny B. Microscope C. Steel Plow D. Electric street car
convert 0.045 to a fraction
Why did hoover believe the government should not step in to be held individuals?
A major political issue in the Gilded Age was A) abortion. B) pollution. C) bimetallism. D) civil rights.
What are the membrane bound sacs that package and transport proteins?