williamschris2907 williamschris2907
  • 23-08-2017
  • Computers and Technology
contestada

When a dynamic array with a class for a base type is declared, which constructor is called?

Respuesta :

tonb
tonb tonb
  • 23-08-2017
The default constructor is called for each element of the array. So if you declare an array with 100 elements (object instantiations), the constructor is executed 100 times!
Answer Link

Otras preguntas

what is the relationship between a fundamental note and its overtones ?
how do u do these equations?
Is this singular or plural? the children's faces
88% of the student body voted if school has an enrollment of 350 students how many students voted in the last election
Trigonometry pile up. Anyone mind helping me out with this one?Trigonometry is not my strong point. Thanks!
solve 7x²+8x+1=0 using quadratic formula
What is 3/7 reduce to its lowest term
Some organisms living in a vacant lot include grass, dandelions, mice, grasshoppers, and slugs. Collectively these organisms represent (A) an ecosystem. (B) a c
Michael's mom paid $2.40 for a 3/4 pound box of cereal.How much is that per pound?
Fungus-like protists have a. cell walls made of cellulose. b. cell walls made of chitin. c. chloroplasts for photosynthesis. d. none of the above.