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

Statement A: The opposite of -3 is 3. Statement B: The opposite of 6 is -6. Statement C: The opposite of the opposite of -2 is 2. Statement D: The opposite of t
Why is it important to reconcile your checkbook?
Which is a sign of possible drug abuse? a.major changes in behavior or personality b.participation in normal activities c.openness about problems d.good perform
Find -x+10 less than o
What is one important element in the design of a technical document
Lina is late to science class and misses the very beginning of notes for the day. These are the notes that Lina did copy down: –Found within galaxies –Have at l
If (x + 5)(x - 2) = 18, then which of the following statements is true? A.) x + 7 = 0 or x - 4 = 0 B.) x + 5 = 0 or x - 2 = 0 C.) x + 5 = 6 or x - 2 = 3
Which expressions are equivalent to 10a - 25 + 5b
Sir Isaac Newton discovered scientific ideas still used today. He introduced gravity and the laws of motion and explained how we see color. In your opinion, whi
URGENT, HELP ASAP Sales of a popular toy were about 20 million in 2000 and growing by about 5% each year. At this growth rate, the function f(x) = 20(1.05)x giv