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

Because it controls the pituitary gland, the brain's _____ ultimately controls the endocrine system.
round 76,912 to the nearest ten thousand
which is the best conclusion one could draw about Della and Jim?a- they are dissatisfied with their livesb-they are obsessed with moneyc-they love one another,
Which characteristic is a physical property of wood? A. Wood can burn. B. Wood can rot. C. Wood does not rust. D. Wood is softer than coal.
what does the comprehensive environmental response compensation and liability act (superfund) do ? a. It encourages businesses to keep hazardous waste sites ope
This summer you and your friends are going to hold a mini water olympics in the community pool. One of your friends is not comfortable using the diving board. W
A baby elephant is stuck in a mud hole. to help pull it out, game keepers use a rope to apply a force f with arrowa, as part a of the drawing shows. by itself,
This 1765 revenue law of the British parliament succeeded in angering the American colonists, not because it taxed most documents but because the colonists had
What are the names of all 50 States in the US?
Which northern tactics help destroy morale in the south after Gettysburg and Vicksburg?