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 is the real Christmas story?
Question: - All woven fabrics are made from fibers, which have been A. spun into filaments. B. bulked and crimped. C. cut into short lengths. D. twisted into ya
How to make Christmas special for kids?
1. The triangles are similar. Find the value of x. xº 14° 76⁰​
What is Santa's brother called?
PLSSSSS HELP IM TIMEDDDD PLSSSS Fill in the blanks with the correct demonstrative adjective (este, esta, ese, esa, aquel, aquella, estos, estas, esos, esas, aqu
how do the art and literature of the renaissance reflect the influence of the ancient greeks?
Compare and contrast player-centric game design and designer-centric game design. How does a player-centric game assist with player immersion?.
suppose john deposits $5000 into his bank account which has a reserve ratio of 10%. what will be the maximum amount of money created by john's deposit?
why is maintaining a hot recovery site is important for e-commerce businesses?