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

Determine the probability of having 1 girl and 3 boys i a 4 child family assuming boys and girls are equally likely
Which statement best explains how The Communist Manifesto relates to Old Major’s speech?
One of the ways governments control capital inflows and outflows is by: Group of answer choices regulating imports. regulating exports. regulating FDI. regulati
(Five Stars & Thanks to whoever answers first)
Hi guys can you answer 5 to 9 please thx
In the figure below, trapezoid WXYZ is isosceles, with WZ XY. If mXWZ = 125° and mWXZ = 27°, what is mXZY? A. 27° B. 35° C. 20° D. 55°
Select all the correct answers. In what three ways did people's lives change as a result of the Agricultural Revolution in Great Britain?
What is the role of cartilage in the rib cage?
Need help ASAP! Please
Work out the value of s S= ut + ½ at^2 u= 10 a=-2 t=1/2 Work out the value of s.